Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-24-2016, 02:43 PM
|
#1
|
Member
Registered: Jun 2016
Posts: 57
Rep: 
|
A few questions about rsync daemon
Hi,
I want to make local backups using rsync daemon.
I expect, that everything works fine when I edit the /etc/rsyncd.conf file and make 'systemctl enable+start/restart rsyncd'
But where those file differences are stored?
And how do I restore a file to a different version or specific date?
|
|
|
10-24-2016, 09:46 PM
|
#2
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,358
|
You cannot. Or rather, you can but you are using the wrong tool. The tool rsync does a sync or clone of an existing file, folder, or tree between locations. (Where locations can be on the same server, or different servers connected via some network connection over which rsh or ssh can be established.)
If you want a point-in-time restore you need a REAL backup tool. Something like bacula may be overkill, and is complicated (and somewhat difficult) to get set up properly. Check your repositories for packages that answer to the 'backup' search term. Burp or BackupPC should be available.
|
|
|
10-24-2016, 09:48 PM
|
#3
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
rsnapshot
|
|
|
10-24-2016, 10:22 PM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Just a footnote, to give an example of what rsync is used for, the Debian scripts for mirroring the Debian mirror uses rsync. rsync has some features that are nice for backup, but it lacks many features that you really need for a local backup program, such as incremental backup. You might have a look at backup ninja. It's dubbed: powerful lotus blossom against data loss.
|
|
|
10-25-2016, 12:51 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,674
|
Hm. playing with words....
Rsync will generate the difference on the fly, it will not store anything (just the files you want to sync). From the other hand rsync will always make an incremental (differential?) backup, it will only sync the changed files (and if you are lucky it will sync only the changed/modified parts of the files). The main goal of rsyncs are: make an exact copy of the specified files and lower the required network traffic.
It is not able to restore any previous version (of any file/dir), however you can rsync a given fileset/directories into different folders (for example week by week) and the identical (non-modified) files will be hardlinked to earlier instances, so only the differences will be really added to the target folders.
Actually you can find a lot of different examples on rsync incremental backup, here is an overview: http://webgnuru.com/linux/rsync_incremental.php
|
|
|
10-25-2016, 11:03 AM
|
#6
|
Member
Registered: Jun 2016
Posts: 57
Original Poster
Rep: 
|
Ok thank you for all this useful information.
So I will use another program for versioning backups
|
|
|
10-25-2016, 11:05 AM
|
#7
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Not sure if you looked up rsnapshot, it is using rsync to create versioned backups. Isn't this what you want?
|
|
|
All times are GMT -5. The time now is 11:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|