[SOLVED] Restoring a single folder from an Evolution backup in Ubuntu 20.04
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.
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.
Check out rsnapshot. It will provide the automation you seek and create and maintain multiple generations as you describe them. It uses rsync "under the hood" The documentation is extensive.
Hi Scasey,
I followed the link, it goes to Github and I have no experience in building such an app from source code.
Is there somehere a .deb installation, or a package?
I followed the link, it goes to Github and I have no experience in building such an app from source code.
Is there somehere a .deb installation, or a package?
It looks exactly what I am after but...
Thanks
Alex
The link lead to this https://rsnapshot.org/download.html and you can get packages there. You are using Ubuntu, correct? If so, it should be in the software repositories. It is Linux Mint's.
The link lead to this https://rsnapshot.org/download.html and you can get packages there. You are using Ubuntu, correct? If so, it should be in the software repositories. It is Linux Mint's.
Quote:
Originally Posted by sgosnell
rsnapshot is in the major distro repositories. Just install it from Synaptic package manager, or from the command line using apt.
Yes.It's in the epel for fedora/centos too. Definitely should be able to install it with the package manager.
We use it to backup the production servers on a daily, weekly and monthly basis. The last shop I worked in ran it every two hours, which was very helpful if someone accidentally blew away a bunch of files on the development server.
The link lead to this https://rsnapshot.org/download.html and you can get packages there. You are using Ubuntu, correct? If so, it should be in the software repositories. It is Linux Mint's.
You do not need an installation file. The link provided was just for information. Install rsnapshot with your package manager. In Ubuntu, that should be Synaptic.
I used the package manager, it is still just a Terminal / command line app
Thanks
Alex
Yes it is. As has been mentioned, if you want to automate copies/backups, you'll need to do that at the command line.
What rsnapshot provides is the wrapper to manage incremental backups using a config file, avoiding having to understand all the features of rsync or how to use cron.
The top level tree of my snapshots tree looks like this:
Yes it is. As has been mentioned, if you want to automate copies/backups, you'll need to do that at the command line.
What rsnapshot provides is the wrapper to manage incremental backups using a config file, avoiding having to understand all the features of rsync or how to use cron.
The top level tree of my snapshots tree looks like this:
I can see the final result, but have no idea how to create the script for it...
I want to backup in original file format, documents, spreadsheets, pdf, images etc.... From source to destination (external drive) once a day at say 8:00pm and keep 7 versions, so there will be one backup on Sunday, one on Monday etc...
Your system is different from anyone else's, and so are your preferences, so things have to be tailored to yours. There is no GUI program that can do what you want, so you have to get your hands dirty and use the command line for a few things. It ain't rocket science, and if I can do it, so can you, with some experience. That will take time, but it's worth it. You've spent years learning Windows, so a few hours for Linux isn't unreasonable. If you have specific questions on individual tasks, first read the manual or help file, use Google, and come back if you truly can't find what you need. I'm sorry to be so blunt, but I see no other options at this point.
Your system is different from anyone else's, and so are your preferences, so things have to be tailored to yours. There is no GUI program that can do what you want, so you have to get your hands dirty and use the command line for a few things. It ain't rocket science, and if I can do it, so can you, with some experience. That will take time, but it's worth it. You've spent years learning Windows, so a few hours for Linux isn't unreasonable. If you have specific questions on individual tasks, first read the manual or help file, use Google, and come back if you truly can't find what you need. I'm sorry to be so blunt, but I see no other options at this point.
OK S, I did the following:
00 20 * * 1 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly
00 20 * * 2 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly
00 20 * * 3 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly
00 20 * * 4 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly
00 20 * * 5 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly
00 20 * * 6 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly
00 20 * * 7 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly
The intention (I hope I got it right) is:
1) One backup each day at 8:00 PM
2) Each backup is done on a different day each week, this gives me 7 versions
3) Each Sunday, the previous Sunday backup is overriden...
Now, I went to Terminal, typed in crontab -e (Ubuntu 20.04) Selected the default editor - nano.
Pasted the above text into it (after clearing the text it had)
CTRL+X, the y, then accepted the name crontab and hit ENTER
Then, back to command prompt, typed crontab -l and the content I entered showed up.
That will overwrite each backup, since they are all going to the same folder, /media/New-SD-512/weekly. To keep separate backups for each day, you need a separate folder for each. That's why this method gets messy, but it should work. You can put 7 subfolders under weekly, say 1, 2, 3, etc.
Code:
0 20 * * 0 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly/sunday
0 20 * * 1 rsync -a /home/alex/alexfolders /media/New-SD-512/weekly/monday
Sunday == 0, through Saturday == 6. There is no 7, which would be the 8th day of the week. You can name the destination folders anything you like - a number, the text day of the week, whatever you can remember best. The destination folders must exist before running rsync.
I can see the final result, but have no idea how to create the script for it...
I want to backup in original file format, documents, spreadsheets, pdf, images etc.... From source to destination (external drive) once a day at say 8:00pm and keep 7 versions, so there will be one backup on Sunday, one on Monday etc...
Thnaks
Alex
You’ll need to read the documentation for rsnapshot to learn how to configure and run it. As it automagically creates a different directory for each run, it will do exactly what you’re asking. If you don’t want weekly or monthly backups, simply don’t configure them.
Another feature of rsnapshot is that if a file is the same today as it was yesterday, it links to yesterday’s copy instead of copying the file again. This saves both time and space on the backup system.
Note that you’ll need to learn one way or the other. As noted, the documentation is on the web as well as in the man pages for the tools. We tend not to repeat here what you can read for yourself.
One other thought: Rather than asking if something will work, just try it and see what happens.
I think rsnapshot is a better option, but really it's just a front-end for rsync. Either can get the job done. And I agree that trying it and seeing what happens is the best way to go. Blowing things up and putting them back together again is an excellent way to learn things, and one tends to remember those things better through that process. I cannot count the number of times I've borked my systems over the years. Sometimes it was frustrating, but I always learned something from it. Often I learned a lot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.