Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i want to back up certain files but want to keep ALL versions of the sources in the backup directory and haven't been able to find a good method. the gui based offerings don't seem to have the depth or, if they do, they'd require so many switches that it seems like just going to a script would be better.
i keep a series of files with ideas for projects. i'm constantly amending these files. being that this is something of a creative process, there are often a lot of changes, additions, deletions to these files. it would be nice to be able to have my backup directory keep all of the various iterations of these files so that i can go back in time if it seems like i might have gotten side-tracked somewhere and want to go back and re-orient myself.
does rsync have anything that will allow for keeping many copies of the same file, maybe using the timestamp to differentiate?
rsync can use different directories day by day for example. probably you can use this as a starting point: http://www.mikerubel.org/computers/rsync_snapshots/
by the way if you want to handle source files you ought to go with git.
Yes rsync can do this, you want the "--link-dest" flag. Every backup you do should go to a new, clean directory, and use --link-dest to point to the previous backup. Rsync will compare the source file to the same file in the previous backup, if they're the same, it will hard link the file from the previous backup to the new backup. If they are different, rsync will copy the file fresh from the source to the new backup. The end result is you have two completely independent and navigable backup directories for the two days, but they only take up the space of one full backup plus the files that changed between the two backups.
There is also rdiff-backup, which combines the best features of a mirror and an incremental backup, working by maintaining history as a series of reverse diffs working back from a current mirror. It is not without its faults, being essentially unmaintained since 2009, but is considered good enough and unique enough to be used as the back end for a new project, safekeep.
Yes rsync can do this, you want the "--link-dest" flag. Every backup you do should go to a new, clean directory, and use --link-dest to point to the previous backup. Rsync will compare the source file to the same file in the previous backup, if they're the same, it will hard link the file from the previous backup to the new backup. If they are different, rsync will copy the file fresh from the source to the new backup. The end result is you have two completely independent and navigable backup directories for the two days, but they only take up the space of one full backup plus the files that changed between the two backups.
This is the underlying mechanism that dirvish uses, it's effectively a wrapper script around rsync.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.