blob: f677a6f3b491612015112ff6cbf9d9460a2e94e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
# Diskstation isn't always on, so run this from the command line rather than cron.
#
# To avoid errors devices and links are skipped, permissions, times,
# group and owner are not written and files are compared by size only.
#
# Ssh is configured with ssh-copy-id for passwordless access
# and host:port details in .ssh/config
#
# Note: I set the rsync options on the diskstation but had to
# chmod 755 my diskstation's home folder before passwordless ssh worked
rsync -r --no-D --no-t --no-o --no-g --no-p \
--size-only \
--delete \
--update \
--exclude .cache/ \
--exclude Downloads/ \
--exclude tmp/ \
--exclude .local/share/Trash/ \
--exclude .wine \
--info=progress2 \
--stats \
/home/philip philip@dsm:backup-X220
|