Backup local folder to nas using rsync?

Discuss backup and restore functions of the DiskStation with respect to computer clients, such as Synology Data Replicator, Time Machine, or other client backup software.

Backup local folder to nas using rsync?

Postby phillips321 » Wed Jan 18, 2012 6:10 pm

Hi guys,

Never used rsync so will need a bit of help here. (I've been told rsync will be the best bet)

My folder on my desktop /media/1TB/VMs contains many virtual machines, i would like to keep a copy of this on my DS211j. I have a shared folder /volume1/vmbackup

I have enabled rsync in the manager now i just need to set it up work. Output of diskstation /etc/rsyncd.conf is as follows:
Code: Select all
DiskStation> cat /etc/rsyncd.conf
#motd file = /etc/rsyncd.motd
#log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
use chroot = no
[NetBackup]
path = /var/services/NetBackup
comment = Network Backup Share
uid = root
gid = root
read only = no
list = yes
charset = utf-8
auth users = root
secrets file = /etc/rsyncd.secrets
DiskStation>


Any help would be great thanks.

P.s. I would like to eventually add this as a cronjob that runs once a week and if the desktop is off at schedule time it will run on next boot. thanks
phillips321
Novice
Novice
 
Posts: 40
Joined: Wed May 04, 2011 10:41 am

Re: Backup local folder to nas using rsync?

Postby Nachtkrapp » Sun Jan 22, 2012 10:45 pm

Hi phillips321,

just run into the same issue and found a solution.
This should work for you:

log into your source machine and execute:
Code: Select all
rsync -avze 'ssh -p 22' /media/1TB/VMs/ root@10.10.10.10:/volume1/vmbackup

where 10.10.10.10 is your disk station IP and 22 is your SSH port on your disk station
After execution you have to enter your disk station root password.
This should copy the content of your VMs folder (and subfolders) onto your disk station in the vmbackup folder.

Regards,

Nachtkrapp
Nachtkrapp
Trainee
Trainee
 
Posts: 12
Joined: Sat Jan 07, 2012 10:17 pm
Location: Stuttgart, Germany


Return to Backup/Restore for computer clients

Who is online

Users browsing this forum: No registered users and 0 guests