Синхронизация с cwRsync
How to: cwRsync 5.0+ GUI, rsync on windows
cwRsync_5.5.0_x86_Free
Windows: cwRsync to replicate data from source to target
Installing & Using Rsync on Windows
cwRsync поставляетя в варианте клиента и сервера
клиент стоит 17$, сервер 22$.
В поставках варианты 32 и 64 бит.
rsync --version
rsync version 3.1.3 protocol version 31
Copyright (C) 1996-2018 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, no ACLs, no xattrs, iconv, symtimes, prealloc
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
В поставке sygwin на это момент была версия 3.1.2
rsync --version
rsync version 3.1.2 protocol version 31
Copyright (C) 1996-2015 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, no xattrs, iconv, symtimes, prealloc
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
Сервер на 10 встает без проблем, но требует действующую или новую учетную запись с паролем. Иногда это не преемлимо, тогда можно установить как сервер как demon
Execute: "C:\Users\user\AppData\Local\Temp\nsxD10B.tmp\icw_rsyncserver_2.4.0_x64_installer.exe" /u=SvcCWRSYNC /p=password
Output folder: C:\Program Files\ICW
Created uninstaller: C:\Program Files\ICW\uninstall_cwrsync_server.exe
Creating shortcuts
Create folder: C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\cwrsync_server
Output folder: C:\Program Files\ICW
Create shortcut: C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\cwrsync_server\01. rsyncd.conf.lnk
Create shortcut: C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\cwrsync_server\02. Prep a Directory for Upload.lnk
Completed
hosts allow = *
log file = rsyncd.log
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[backup]
path = /cygdrive/d/backup
read only = false
transfer logging = yes
Установка демона:
Файл c:\rsyncd\rsyncd.conf
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[diskc]
path = /cygdrive/c/
read only = false
transfer logging = yes
[diskd]
path = /cygdrive/d/
read only = false
transfer logging = yes
[diske]
path = /cygdrive/e/
read only = false
transfer logging = yes
[diskf]
path = /cygdrive/f/
read only = false
transfer logging = yes
Файл start.bat
c:\rsyncd\bin\rsync.exe --daemon --config=/cygdrive/c/rsyncd/rsyncd.conf --log-file=/cygdrive/c/rsyncd/rsyncservice.log --address=192.168.1.226
Пример:
g:/rsyncd/bin/rsync.exe -r /cygdrive/d/yandex_disk/backup_2019_04_18.7z 192.168.1.226::diskc/rsyncd --progress
backuppc_rsync-server.nsi
Ручная регистрация службы RsyncServer
c:\rsyncd\bin\cygrunsrv -I "RsyncServer" -p /cygdrive/c/rsyncd/bin/rsync.exe -a "--config=/cygdrive/c/rsyncd/rsyncd.conf --daemon --no-detach" -o -t auto -e "CYGWIN=nontsec binmode" -1 /cygdrive/c/rsyncd/rsyncd-stdin.log -2 /cygdrive/c/rsyncd/rsyncd-stderr.log -y tcpip -f "Rsync daemon service"
Полезные команды:
c:\rsyncd\bin\cygrunsrv --verbose --start "RsyncServer"
Удаление службы RsyncServer
c:\rsyncd\bin\cygrunsrv --verbose --stop "RsyncServer"
c:\rsyncd\bin\cygrunsrv -R "RsyncServer"
c:\rsyncd\bin\cygrunsrv --help
>rsync -r --perms --chmod=777 192.168.0.46::diskd/backup/rsync_32_64.exe .
или
>rsync -r --perms --chmod=ugo+rwx 192.168.0.46::diskd/backup/rsync_32_64.exe .
How to: cwRsync 5.0+ GUI, rsync on windows
cwRsync_5.5.0_x86_Free
Windows: cwRsync to replicate data from source to target
Installing & Using Rsync on Windows
cwRsync поставляетя в варианте клиента и сервера
клиент стоит 17$, сервер 22$.
В поставках варианты 32 и 64 бит.
rsync --version
rsync version 3.1.3 protocol version 31
Copyright (C) 1996-2018 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, no ACLs, no xattrs, iconv, symtimes, prealloc
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
В поставке sygwin на это момент была версия 3.1.2
rsync --version
rsync version 3.1.2 protocol version 31
Copyright (C) 1996-2015 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, no xattrs, iconv, symtimes, prealloc
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
Сервер на 10 встает без проблем, но требует действующую или новую учетную запись с паролем. Иногда это не преемлимо, тогда можно установить как сервер как demon
password :
Stop RsyncServer service
Execute: "C:\Users\user\AppData\Local\Temp\nsxD10B.tmp\icw_base_4.3.0_x64_installer.exe" Execute: "C:\Users\user\AppData\Local\Temp\nsxD10B.tmp\icw_rsyncserver_2.4.0_x64_installer.exe" /u=SvcCWRSYNC /p=password
Output folder: C:\Program Files\ICW
Created uninstaller: C:\Program Files\ICW\uninstall_cwrsync_server.exe
Creating shortcuts
Create folder: C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\cwrsync_server
Output folder: C:\Program Files\ICW
Create shortcut: C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\cwrsync_server\01. rsyncd.conf.lnk
Create shortcut: C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\cwrsync_server\02. Prep a Directory for Upload.lnk
Completed
rsyncd.conf :
use chroot = false
strict modes = falsehosts allow = *
log file = rsyncd.log
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[backup]
path = /cygdrive/d/backup
read only = false
transfer logging = yes
Установка демона:
Файл c:\rsyncd\rsyncd.conf
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[diskc]
path = /cygdrive/c/
read only = false
transfer logging = yes
[diskd]
path = /cygdrive/d/
read only = false
transfer logging = yes
[diske]
path = /cygdrive/e/
read only = false
transfer logging = yes
[diskf]
path = /cygdrive/f/
read only = false
transfer logging = yes
Файл start.bat
c:\rsyncd\bin\rsync.exe --daemon --config=/cygdrive/c/rsyncd/rsyncd.conf --log-file=/cygdrive/c/rsyncd/rsyncservice.log --address=192.168.1.226
Пример:
g:/rsyncd/bin/rsync.exe -r /cygdrive/d/yandex_disk/backup_2019_04_18.7z 192.168.1.226::diskc/rsyncd --progress
backuppc_rsync-server.nsi
Ручная регистрация службы RsyncServer
c:\rsyncd\bin\cygrunsrv -I "RsyncServer" -p /cygdrive/c/rsyncd/bin/rsync.exe -a "--config=/cygdrive/c/rsyncd/rsyncd.conf --daemon --no-detach" -o -t auto -e "CYGWIN=nontsec binmode" -1 /cygdrive/c/rsyncd/rsyncd-stdin.log -2 /cygdrive/c/rsyncd/rsyncd-stderr.log -y tcpip -f "Rsync daemon service"
Полезные команды:
c:\rsyncd\bin\cygrunsrv --verbose --start "RsyncServer"
Удаление службы RsyncServer
c:\rsyncd\bin\cygrunsrv --verbose --stop "RsyncServer"
c:\rsyncd\bin\cygrunsrv -R "RsyncServer"
c:\rsyncd\bin\cygrunsrv --help
>rsync -r --perms --chmod=777 192.168.0.46::diskd/backup/rsync_32_64.exe .
или
>rsync -r --perms --chmod=ugo+rwx 192.168.0.46::diskd/backup/rsync_32_64.exe .