Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
I,m using Ubuntu 10.10 with Gimp. Ive got a lot of photos etc and need to back these up. Can I anyone suggest a good backup solution which does not require e to keep copying the same files? IE: Once the files are backed up I only want to back the files used since last back up? Appreciate suggestions
I love Luckybackup. Basically a gui front end for rsync. Really easy to use and it will sync directories. It is available via the "software centre" or synaptic.
Hi, I would grateful if someone could show me a good way to back up and restore my personal data. I prefer to work from the terminal purely for learning purposes. I will certainly look at the apps suggested above. Initially I was thinking of creating a script containing to create tar ball the compress with bzip2
Code:
tar -cf tarfile.tar destination_directory
bzip2 tarfile.tar destination_directory
I would then extract in a single line
Code:
bzip2 -cd tarfile.tar.bz2 destination_directory
But this is obviously inefficient if I was to backup every three days. I want a way to backup only files that have been changed and leave the unchanged alone. I don't want to save the whole home directory which will include unnecessary system settings. Can anyone help?
Hi Repo, wpeckham suggested I should NOT create a new thread and tag onto a similar one. Since posting I have installed luckyback and it seems to be good application. I still would appreciate the core shell commands to create my own script.
He said 'repost' and update an existing thread as apposed update 'this' thread which threw me off. I do my best to work with everybody. I think you will agree that in all my threads I am careful not to make personal remarks even if the responses are unsatisfactory. The term hijacking was uncalled for.
DO NOT USE WILDCARDS. /home/some-user-name/ with the trailing forward slash will copy *all* contents including . hidden files and weirdly spaced names.
-v = verbose
-a = archive (keep attributes and permissions)
-r = recursive (go into directories)
-h = human readable (1.6m rather than 1691982)
--progress = readable progress indication on screen
--delete = delete any destination files that are not on the source. (For example, if you run this command, then delete a file from your home directory, and run this command again, rsync will notice that the file is not in your home directory anymore, and delete it from the destination media.) You can leave this option out, if you want to keep an ongoing archive of files, even if you delete them from your home directory, but this might cause certain programs to run weird or not at all.
Thanks, actually I am not bothered by the settings. All I want is to backup personal data stored in the home directory using shell commands as described above. I have already installed luckybackup which seems to be a good GUI app, I just want the command line solution.
Maybe make a script to find by date or some and then port the output to a tar or gzip command and then to some storage area. Since you know pretty much what you want it ought to be similar each time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.