SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Just to satisfy my curiosity, what is wrong with using a real backup program?
Nothing. I just don't know of one for linux. I've seen a few for windows, but they were all proprietary and you couldn't access your data without the program.
Another solution is to have two backup hard drives, and cp -r onto alternating drives every month.
If you have enough space to create two partitions each on your two backup drives then I would recommend that you use one of the drives for off site backup. You could alternate partitions on each drive each month.
Also you would not have to do both onsite and offsite backups on the same day. You could stagger them two weeks apart.
tar has an option to update only changed files. 7zip and others have a "only add if changed" option as well. Some don't support permissions and users/groups saving so consider that. cpio. rsync.
Creating something like a new tar file for every backup has the advantage that you will have different backups with different ages. If you accidentally break something in the original source and make a new backup you will at least still have some older backup backup laying around.
The same can be accomplished also with rsync to a single directory structure if the target directory structure resides on a file system with some kind of snapshot functionality.
Whenever someone is considering different backup solutions I usually point to this good old set of pages with things to consider: http://www.taobackup.com/
Rsync simpler, easier to remember.
I sometimes `alias backup='rsync -av --progress to ease the wear and tear of the old fingerbones. Incremental built in. I use cp for monthly image backups, rsync for daily and weeklies.
If you don't want file versioning, then you can use rsync as suggested above.
If you want file versioning, then I can recommend rsnapshot: https://rsnapshot.org/. It's simple and robust, and hasn't disappointed me once since I started using it. It optimises space usage by using a combination of rsync, hard links and deltas. For example: I have a 62Gb data set, for which I started using rsnapshot almost 2 years ago. At this point I have 7 daily, 4 weekly, 12 monthly and 1 annual backups in 77Gb of hard drive space.
export bkpdate="`date +%y%m%d'_'%H%M%S`"
cd the_dir_to_backup
tar -zcvf * backup_${bkpdate}.tar.gz
Misformed command: the wildcard is in the wrong place. Should be after the archive file. Also, use of "*" won't include any dot files.
There are lots of ways of using tar, but I prefer:
tar -cvf /backups/wibble.bkp.tar -C /somewhere/wibble .
Use of -C and '.' makes it easier to restore to an alternate location while still using absolute paths on the command-line.
For "archival backups" I use gnu tar listed-incrementals. For disaster recovery (i.e. latest point in time snapshot) backups I use rsync.
I don't like to use any backup tools that will need installing before I can restore from them. By sticking with tar and rsync I know they will already be present.
Nothing. I just don't know of one for linux. I've seen a few for windows, but they were all proprietary and you couldn't access your data without the program.
I have been using luckyBackup for the last several years and I am quite happy with it. It is basically a GUI front-end for rsync. Available at slackbuilds.org, too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.