PDA

View Full Version : Backing up just a few directories and files


TheGameAh
June 15th, 2007, 11:52 AM
Hey guys.

I know this is dirt simple and can probably be done with just tar and gzip, but I'm looking to backup just a few files and folders. Namely:

/var/www
/var/ftp
/etc/proftpd/proftpd.conf

That's it really. Just can't figure out syntax.

bashologist
June 15th, 2007, 11:58 AM
This should work:
sudo tar -cvjf ~/backup.tar.bz2 /var/www /var/ftp /etc/proftpd/proftpd.conf