☰
✕
Главная
© 2002 - 2025
diary.space
nio-kun
| суббота, 23 сентября 2017
Сисадминское, проматываем...
Если у вас завелось два NAS, то на одном делаем
вот что:
вот что:
/etc/rsyncd.conf
pid = nobody gid = nogroup use chroot = yes max connections = 10 pid file = /var/run/rsyncd.pid [Public] path = /shares/Public comment = Public share mirror hosts allow = 192.168.xxx.yyy hosts deny = * read only = no
/etc/default/rsync
RSYNC_ENABLE = true
/etc/init.d/rsync.sh
#!/bin/sh # simple init sсript to run # rsync in daemon mode case "$1" in start) echo "Starting the rsync server..." exec /usr/bin/rsync --daemon ;; stop) echo "Stopping the rsync server...." killall /usr/bin/rsync ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac
A на другом делаем
вот так:
вот так:
/usr/bin/backup.sh
#!/bin/sh BACKUPDIR="rsync://192.168.xxx.zzz/Public" LOCALDIR="/shares/Public/" rsync -vurpt --delete $LOCALDIR $BACKUPDIR
crontab -e
*/30 * * * * /usr/bin/backup.sh
Будни
Софт
Хроники бешеных табуреток
Смотрите также
ABO Desire Т___Т
Вредные советы
forward to...
Не знаю, права ли я?
NEWS.BY: новости Беларуси и мира
Октябрь