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.
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.
I second the use of rsnapshot. I been using since 2012. I have 7 daily, 4 weekly 4 and 3 monthly 3 backups. In the past I used rsnapshot to backup a single directory. You can also setup remote backups via ssh. Did that with my son's computer until he moved out. I've done several full system restores over the years. I most frequently use I use it for file recovery. Today, a few minutes ago in fact I restored six files I pulled an oops on.
[QUOTE=GazL;6494601]Misformed command: the wildcard is in the wrong place. Should be after the archive file. Also, use of "*" won't include any dot files.
Yup - sorry - I was just working from memory. As a rule, I would NEVER create a "dot" file if I had the choice - those are done by other programs for configs and the like. So "normal" names are what I'm generally interested in. But you are 100% correct. Could have done "* .*" I think I was just pointing out a rather simple command line technique that people like myself use on real production work servers daily - esp for quick+dirty backups.
I tend to rely on program that I KNOW are on EVERY version of Linux/Solaris/*bsd server. And that will almost always mean a non-gui one. Tar is a goto everytime. Zip/pax are a bit iffy. Rsync (wow - genius program) cuts most times - but not on esoteric old machines.
Last edited by Mark Pettit; 04-07-2024 at 11:54 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.