Command to perform Full and Differential backups
Hey Guys,
I have searched the net and found a few ideas/solutions to perform full backups using the TAR utility. I would like to perform a weekly full backup (Saturdays) and daily differential backups (Su-Fri) for a folder located on a Ubuntu server. So far I have tried: Code:
tar puvf /mnt/backup/test.tar /foldertobackup I also tried: Code:
tar Gpcvf /mnt/backup/test.tar /foldertobackup/ Server: Ubuntu Server 16.04 Thank you |
tar can be used to create an incremental backup using the --listed-incremental option. If the snapshot file does not exist or if you use the --level=0 option then a full backup (level 0) is performed otherwise it is a level 1 backup.
Code:
tar --listed-incremental=snapshot.file -cvzf backup.tar.gz /path/to/dir Always verify your backups... |
Thank you. I will read the documentation on the link below, test and verify my backups.
|
You will likely be better served to use rsync, take a look at it's man page - it is what most back up programs use. :)
Also, look into cron to do the work for you. |
+1 for rsync -- and rsnapshot to control and manage it with minimum effort.
|
Thank you guys for your responses! After testing different scenarios I will use Rsync for incremental backups and tar for weekly full backups. Thank you so much!
|
All times are GMT -5. The time now is 05:40 PM. |