This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Synch via Rsync

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
MarkusSt85
NewUser
NewUser
Posts: 2
Joined: 11 Feb 2015 14:21
Status: Offline

Synch via Rsync

Post by MarkusSt85 »

Hi,

i would like to synch several (lokal) PCs with a NAS Server (remote) using rsync.
My batch works already fine, however i would like to improve such that it is more "synchronising-like", at the moment its more like "manually" updating the server, i.e. two scripts on the lokal pcs wich upload or download files to or from the server.

-u as a rsync option doesnt help either - because this was rsync cannot distinguish between new files that should be upoloaded and old files that should be deleted.

I thought a way to do this would be to save a file-list on the server side after each synch process. Then when a new synch is started every file which has a newer date as the file-list will be updated/uploaded to the server; files older than the file-list will be deleted if they are not existing on the server; finally files on server side will be deleted if they are not existing on the local PC.

Is there a way to do this (or similar) with rsync (or with sth else)? So far i have to "think" wether i want to upload or download; the aim would be to write a batch which can be started automatically with each boot/shutdown of a local PC. :mrgreen:

Thanks for your help,
Markus

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: Synch via Rsync

Post by crowi »

did you try the rsync -c and --delete options?
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

MarkusSt85
NewUser
NewUser
Posts: 2
Joined: 11 Feb 2015 14:21
Status: Offline

Re: Synch via Rsync

Post by MarkusSt85 »

Yes, sure. But that does not help to achieve what i want ;)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 538
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: Synch via Rsync

Post by crest »

MarkusSt85 wrote:Hi,

i would like to synch several (lokal) PCs with a NAS Server (remote) using rsync.
My batch works already fine, however i would like to improve such that it is more "synchronising-like", at the moment its more like "manually" updating the server, i.e. two scripts on the lokal pcs wich upload or download files to or from the server.

-u as a rsync option doesnt help either - because this was rsync cannot distinguish between new files that should be upoloaded and old files that should be deleted.

I thought a way to do this would be to save a file-list on the server side after each synch process. Then when a new synch is started every file which has a newer date as the file-list will be updated/uploaded to the server; files older than the file-list will be deleted if they are not existing on the server; finally files on server side will be deleted if they are not existing on the local PC.

Is there a way to do this (or similar) with rsync (or with sth else)? So far i have to "think" wether i want to upload or download; the aim would be to write a batch which can be started automatically with each boot/shutdown of a local PC. :mrgreen:

Thanks for your help,
Markus
Maybe BitTorrent Sync or Synching could fulfill your requests ... ?

Sent from my Lenovo B8000-F with Tapatalk.

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Re: Synch via Rsync

Post by sb00nk »

as far as i know, if you setup a transfert module in the web gui, you can also define when execute it (hours/minute/day/mounth/week day)

Code: Select all

NASSERVER
firmware: 	11.1.0.4 - Atomics (revision 4528)
setup:		x64-embedded on 16GB microSD (Samsung MB-MP16D/EU)
case:		Cooler Master Silencio 550
mb:		ASROCK C2550D4I
cpu:		Intel Avoton C2550 @ 2.40GHz
ram:		32GB DDR3 ECC (4x Kingston KVR16E11/8)
hds:		4x2TB RaidZ (WD20EFRX)
cold spare:	1x WD20EFRX

BACKUP
NETGEAR ReadyNAS Duo
hds:		2x500GB Raid1 (WD5000AADS)
cold spare:	1x WD5000AADS

Post Reply

Return to “RSYNC”