RSYNC between 2 Servers

to copy of files from your synology(….0.1) to new synology(…0.2)
connect to new Synology(…0.22) with Putty (ssh) as root and run followed command line:

date >/root/SOUT.log; date >/root/ERROUT.log; rsync -av 1>>/root/SOUT.log 2>>/root/ERROUT.log 10.0.0.1:/volume1 /volume1

description:

date >/root/SOUT.log        will set the starttime of rsync proces
date >/root/ERROUT.log    will set the starttime of rsync proces

rsync    – tool to synchronize of files

-av    -a, copy all files recursiv with folders and links
-v, verbose

1>>  –  Option to write all StdOutputs to a File
2>>  –  Option to write all ErrMessages to a File

10.0.0.1:/volume1 –  Source path

/volume1 –  Destination Path

to test it use follow command line:

rsync -avn 10.0.0.1:/volume1 /volume1

-n, –dry-run

Speichere in deinen Favoriten diesen permalink.

Schreibe einen Kommentar