Editing Backup Linux desktop data using rsync

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 44: Line 44:
chmod 600 diskstation-rsync-key
chmod 600 diskstation-rsync-key
</code>
</code>
If you want to connect without using a passphrase, you must not enter any passphrase when ask (just it the "Enter" key)


<b>Transfer the keys</b><br />
<b>Transfer the keys</b><br />
First, you will have to enable the "homes" directory" through your Synology web interface. (all "homes" are created under directory ''/volume1/homes/'')
Use your file manager (e.g. Nautilus) to navigate to <code>[YourUserName]@smb://diskstation/home/</code><br />
Use your file manager (e.g. Nautilus) to navigate to <code>[YourUserName]@smb://diskstation/home/</code><br />
Create a directory <code>.ssh</code> and copy diskstation-rsync-key.pub there.<br />
Create a directory <code>.ssh</code> and copy diskstation-rsync-key.pub there.<br />
Line 76: Line 73:
<code>
<code>
rsync --recursive --copy-links --times --verbose  --progress -e "ssh -i ~/.sshkeys/diskstation-rsync-key" \<br />
rsync --recursive --copy-links --times --verbose  --progress -e "ssh -i ~/.sshkeys/diskstation-rsync-key" \<br />
/home/[localusername] [YourUserName]@diskstation:/volume1/homes/[YourUserName]/backup
/home/[localusername] [YourUserName]@diskstation/volume1/homes/[YourUserName]/backup
</code><br />
</code><br />
This will:
* Connect through SSH to your Synology, using the set of key you previously created
* Copy recursively all from /home/[localusername] to your Synology, within /volume1/homes/[YourUserName]/backup directory (no need to create "backup")
* Copy referents to symbolic links
* Preserve ties from your files
* Show you the progress from copy (not useful if you are running it with a cron)
<b>TODO:</b> Explain a little more
<b>TODO:</b> Explain a little more


Line 93: Line 84:
<br />[http://qtdtools.doering-thomas.de/page.php?seite=0&sub=0&lang=en QTDSync]
<br />[http://qtdtools.doering-thomas.de/page.php?seite=0&sub=0&lang=en QTDSync]
<br />[http://gadmintools.flippedweb.com/index.php?option=com_content&task=view&id=51&Itemid=38 GAdmin tool for rsync]
<br />[http://gadmintools.flippedweb.com/index.php?option=com_content&task=view&id=51&Itemid=38 GAdmin tool for rsync]
<br />[http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp DeltaCopy] (Windows rsync GUI)
<br /><b>ToDo</b>: complete the list of Linux GUI applications using rsync.
<br /><b>ToDo</b>: complete the list of Linux GUI applications using rsync.
==Synchronize Sabnzbd and Synology==
If you have a server somewhere with Sabnzbd on it and you want to move what you downloaded from the server to your Synology, please have a look to [http://blog.metabaron.net/index.php?post/2011/04/14/Sabnzbd-and-Synology|this blog entry]
[[Category:SynologyWiki]]
[[Category:ToBeExported]]
Please note that all contributions to wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wiki:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)