Jump to content
nicksphone

rsync for dummies

14 posts in this topic Last Reply

Recommended Posts

Is it possible to get an rsync plugin or docker that makes it simple for us newbs so its source, destination lines and which copy options you want with a check box or a yes or no field. and an option for it to loop after its done?

 

 

Share this post


Link to post

 

Let me flip the question back: why do you need rsync?

There are simpler apps out there to keep 2 folders in sync without needing endless loops (i.e. only run upon changes) e.g. Syncthing, Resilio Sync, etc.

 

Sounds to me like you picked a tool beyond your skill level to solve a problem it may not be the the most suitable tool for.

Share this post


Link to post
2 hours ago, nicksphone said:

Is it possible to get an rsync plugin or docker that makes it simple for us newbs so its source, destination lines and which copy options you want with a check box or a yes or no field. and an option for it to loop after its done?

 

 

If you want/need to use rsync and you need it to run "continually" you can use the User Scripts plugin to schedule your rsync task every minute with a * * * * * custom cron setting.

 

I back up all my unRAID shares from one server to another unattended via an rsync script.   I only do it once a week, but you can set the frequency to anything cron allows and it can be as granular as every minute.

Share this post


Link to post
18 hours ago, testdasi said:

 

Let me flip the question back: why do you need rsync?

There are simpler apps out there to keep 2 folders in sync without needing endless loops (i.e. only run upon changes) e.g. Syncthing, Resilio Sync, etc.

 

Sounds to me like you picked a tool beyond your skill level to solve a problem it may not be the the most suitable tool for.

syncthing and resilo sync i end up with duplicated files like File1 and file1 is there a setting im missing?

Share this post


Link to post

That's not duplicated file. Linux is a case-sensitive system, unlike Windows. So File1 and file1 are 2 different files.

Share this post


Link to post
1 hour ago, testdasi said:

That's not duplicated file. Linux is a case-sensitive system, unlike Windows. So File1 and file1 are 2 different files.

which is fine in a perfect world but when a windows user changes the capital letters in a file name linux sees it as a diffrent file on sync and windows has a hissy fit when there are 2 files named the same as it sees 

Share this post


Link to post
5 hours ago, nicksphone said:

which is fine in a perfect world but when a windows user changes the capital letters in a file name linux sees it as a diffrent file on sync and windows has a hissy fit when there are 2 files named the same as it sees 

But rsync on Unraid, which is Linux based, will do the same.

Share this post


Link to post
23 hours ago, nicksphone said:

which is fine in a perfect world but when a windows user changes the capital letters in a file name linux sees it as a diffrent file on sync and windows has a hissy fit when there are 2 files named the same as it sees 

But the file on unRaid will be changed from say "test" to be "TEST".  There will not be 2 files on unRaid.  Your backup solutions will see that there is only a single file, but the history / old versions of the files will still exist.  

Share this post


Link to post
Posted (edited)

I use a switch in my rsync backup script called "--delete-before" and it will drop/delete any file or folder in the target location that was either changed or doesn't exist anymore prior to rsync making a new backup from source. So if a file was renamed file1.txt to File1.txt since the last backup, file1.txt on my backup target will be deleted and a new copy of File1.txt will take place.

Edited by cybrnook

Share this post


Link to post
5 hours ago, cybrnook said:

it will drop/delete any file or folder in the target location that was either changed or doesn't exist anymore prior to rsync making a new backup from source.

So how do you recover from accidental deletions or corruption?

Share this post


Link to post
Posted (edited)

Well I use the wonderful recycle bin plug-in for accidental deletes, and to be honest I have been using unraid for around 10 years and have never once accidently deleted anything.

 

And for corruption I have redundant backup servers that take backups at different times. Again, have yet to run into corruption due to anything like bit rot etc.

 

Key is I write my own scripts, so I understand what they are doing and create my own assumed and acceptable risk factors trading things like versioned backups for smaller backup footprints.

Edited by cybrnook

Share this post


Link to post
9 hours ago, cybrnook said:

Key is I write my own scripts, so I understand what they are doing and create my own assumed and acceptable risk factors trading things like versioned backups for smaller backup footprints.

That's great for you, not so good for the OP in this thread.

Share this post


Link to post
Posted (edited)

Question was asked if rsync could handle changes in file names instead of duplicating, and I answered. Yes it can. Seems relevant to me.

Edited by cybrnook

Share this post


Link to post
On 7/20/2019 at 9:28 PM, jonathanm said:

So how do you recover from accidental deletions or corruption?

One could argue that syncing is not backup and not meant to protect against deletions or corruption.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.