Re: Using rsync command to sync changed/new files from old Synology NAS to new Synology NAS

Turritopsis Dohrnii Teo En Ming via samba <[email protected]>
Newsgroups gmane.network.samba.general
Message-ID <NkPdxKnO4ify5tJxubiQfI2swCPqgmfW9sXER5ZEiKo1SuQLJ7SvNa8nZaqvrbnXVVW09EfTj4vXLBx5hGp3eqN4vZht7iN8duKyIdqNWkU=@protonmail.com>
On Tuesday, 27 January 2026 at 1:53 PM, Turritopsis Dohrnii Teo En Ming via samba <[email protected]> wrote:

> 
> 
> On Tuesday, 27 January 2026 at 12:55 AM, Rowland Penny via samba [email protected] wrote:
> 
> > On Mon, 26 Jan 2026 16:23:34 +0000
> > Turritopsis Dohrnii Teo En Ming [email protected] wrote:
> > 
> > > On Monday, 26 January 2026 at 11:56 PM, Rowland Penny via samba
> > > [email protected] wrote:
> > > 
> > > > On Mon, 26 Jan 2026 16:24:30 +0100
> > > > Luis Peromarta via samba [email protected] wrote:
> > > > 
> > > > > Sorry if I’ve missed but, what exactly is the question ?
> > > > 
> > > > I do not think the OP was asking a question, they appeared to be
> > > > trying to show how to use rsync between two NAS devices.
> > > > 
> > > > The use of '--numeric-ids' was interesting, as anyone that runs two
> > > > or more Samba AD DCs will know, you cannot rely on a user or group
> > > > ID being the same on multiple computers, unless they are domain
> > > > members.
> > > > 
> > > > Rowland
> > > 
> > > I do have one question though.
> > > 
> > > If I wanted to make all the shared folders on the old Synology NAS
> > > read only, can I run the following command?
> > > 
> > > mount -o remount,ro /volume1
> > > 
> > > Verify:
> > > 
> > > mount | grep volume1
> > > 
> > > You should see (ro,…).
> > > 
> > > After I am done with rsync, I will run the following command to
> > > restore read-write:
> > > 
> > > mount -o remount,rw /volume1
> > > 
> > > Will the above commands work on a Synology NAS with DSM 7.1.1? The
> > > old NAS is DS713+.
> > 
> > You will have to ask synology that, they seem to take packages and make
> > changes to them and then keep their changes secret. The standard Linux
> > 'mount' should do what you require, but whether the synology 'mount'
> > does, I do not know, I haven't got (and will not get) a synology device.
> > 
> > Rowland
> 
> 
> Dear Rowland,
> 
> Noted with thanks.
> 
> Regards,
> 
> Mr. Turritopsis Dohrnii Teo En Ming
> Extremely Democratic People's Republic of Singapore
> 27 Jan 2026 Tuesday 1.35 pm Singapore Time

Is the following rsync command safe to run?

nohup sh -c '
for f in "1 Sales" "2 OPERATIONS" "3 Admin" "4 ISO 9001" "5 Finance" "6 IT" "7 Volume_1" "8" "8 SynologyLog" "Completed Projects" "Disk 2" "docker" "OSV and LLP" "Volume_2" "web" "web_packages"
do
  echo "===== Incremental sync for $f : $(date) ====="
  rsync -aHAX --numeric-ids --info=progress2 --partial \
    "/volume1/$f/" \
    [email protected]::"$f/" \
    >> "/volume1/rsync_$f.log" 2>&1
done
' > /volume1/rsync_master.log 2>&1 &

I want the above rsync command to survive after I close the SSH session.

Why these flags (important)

Flag 		Why it matters on Synology
-a	perms, owner, group, timestamps
-H	preserves hard links (DSM uses them internally)
-A	ACLs (shared folder permissions)
-X	extended attributes (DSM metadata)
--numeric-ids	UID/GID preserved exactly
--info=progress2	overall progress (log-friendly)
--partial	resume safely

The above rsync command was suggested by AI. But I wanted to make sure it is safe to use.

Thank you for your advice in advance.

Regards,

Mr. Turritopsis Dohrnii Teo En Ming
Extremely Democratic People's Republic of Singapore
27 Jan 2026 Tuesday 11.21 pm Singapore Time


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.