Using tar for backup.
Hello.
I have created a cronjob which is going to run at 1:30am each Saturday. I have done this with... crontab -e 30 1 * * 0 /runfile I am backing up around about 60GB of data, only a seperate HDD in th eserver. I want all of the files to preserve their file ownership, permissions, and full directory paths. Basically so, If I have a disaster and the RAID pack dies and the data gets lost, I can untar the latest backup file and everything will be as it was. Can anyone please help me out with the tar command. I want to nail it first time as it is a production server. Thanks alot. Best Regards, Craig |
hi,
tar -czf tarfile.tar.gz directory if you want to backup everything tar -czf totalBackup.tar.gz / if your server handles tar.bz2 better tar -cjf backup.tar-bz2 / |
Cool thanks alot foo!!!!
I'll give that a go. Thanks again. >Craig :) |
All times are GMT -5. The time now is 07:55 AM. |