laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.36k stars 443 forks source link

Using rsync-time-backup openwrt, works but some minor problems #223

Closed xifi-kif closed 1 year ago

xifi-kif commented 3 years ago

I'm testing it on openwrt version 19.07.4

What you need:

I'm running a backup of 40 GB through ssh for testing purpose.

It seems to work pretty well, so far I find two minor problems. from the log:

This rsync lacks old-style --compress due to its external zlib.  Try -zz.
Continuing without compression.

rsync seems to lack the --compress option

root@OpenWrt:~# 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,
    no 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.

openwrt has dropbear for ssh by default which I don't think is compatible with some openssh options this script uses, still it ignores those options and works. (I'm trying with password, instead of ssh keys, since I'm on LAN)

from the log

ssh: Ignoring unknown configuration option 'StrictHostKeyChecking=no'
ssh: Ignoring unknown configuration option 'UserKnownHostsFile=/dev/null'
xifi-kif commented 3 years ago

The minor problems where fixed by mounting the source destination before runnning the backup, instead of running rsync trough ssh. Also rsync --compression warning went away.