LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-24-2016, 02:43 PM   #1
spiri13
Member
 
Registered: Jun 2016
Posts: 57

Rep: Reputation: Disabled
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?
 
Old 10-24-2016, 09:46 PM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,046

Rep: Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332
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.
 
Old 10-24-2016, 09:48 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
rsnapshot
 
Old 10-24-2016, 10:22 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
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.
 
Old 10-25-2016, 12:51 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,102

Rep: Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144
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
 
Old 10-25-2016, 11:03 AM   #6
spiri13
Member
 
Registered: Jun 2016
Posts: 57

Original Poster
Rep: Reputation: Disabled
Ok thank you for all this useful information.

So I will use another program for versioning backups
 
Old 10-25-2016, 11:05 AM   #7
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Not sure if you looked up rsnapshot, it is using rsync to create versioned backups. Isn't this what you want?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is rsync daemon encrypted packets Linux - Security 1 04-18-2016 04:21 AM
Rsync could not run as daemon linux425 CentOS 2 11-04-2014 07:21 PM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 04:08 AM
rsync daemon hverne Red Hat 6 06-04-2005 08:37 PM
rsync daemon hverne Fedora 1 05-27-2005 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration