Tag Archives: tar

Linux bash – tar tricks

Change directory: tar xzvf /var/backups/dbserver/dbserver-backup*.tar.gz -C /var/backups/dbserver Specifing the destination file: tar –create -zvPh -f /tmp/backup.tar.gz /usr/local/bin /usr/local /etc/var/spool/cron /var/svn /home/*/.ssh /home/*/.bash*

Posted in Linux Command Line | Tagged | Leave a comment

Web Development Tips

diff diff –recursive dir1 dir2 Display all the difference, regarding the subdirs as well. diff –brief –recursive dir1 dir2 Doesn’t display all of the differences but just the files that differ. diff /path1/file1 /path2/ Using -b it will ignore white … Continue reading

Posted in Linux Command Line, Web Development | Tagged | Leave a comment