RSYNC - help?
I'm attempting to setup rsync to back up some basic files (incremental backups), and I'm running into some trouble. Here's what I've done (I don't need SSH encoding for these files):
motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[njbackup]
path = /backup/rsync/nj
comment = njbackup
uid = nobody
gid = nobody
read only = no
auth users = njbackup
secrets file = /etc/rsyncd.scrt
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[njbackup]
path = /backup/rsync/nj
comment = njbackup
uid = nobody
gid = nobody
read only = no
auth users = njbackup
secrets file = /etc/rsyncd.scrt
I then run this command on the server that has the files that I want to backup:
rsync --verbose --password-file=/etc/rsync-pwd --progress --stats --compress --recursive --times --perms --links --delete /backup/path/to/files/ njbackup@remote.backup.server.com::njbackup
<snipped>
file304
34 100% 8.30kB/s 0:00:00 (273, 97.2% of 326)
anotherfile
9 100% 2.20kB/s 0:00:00 (274, 97.5% of 326)
he/aserver.com
151 100% 29.49kB/s 0:00:00 (275, 98.8% of 326)
he/bserver.com
he/cserver.com
Number of files: 326
Number of files transferred: 277
Total file size: 2824056 bytes
Total transferred file size: 2824045 bytes
Literal data: 2824045 bytes
Matched data: 0 bytes
File list size: 5991
Total bytes sent: 2290052
Total bytes received: 4448
sent 2290052 bytes received 4448 bytes 353000.00 bytes/sec
total size is 2824056 speedup is 1.23
file304
34 100% 8.30kB/s 0:00:00 (273, 97.2% of 326)
anotherfile
9 100% 2.20kB/s 0:00:00 (274, 97.5% of 326)
he/aserver.com
151 100% 29.49kB/s 0:00:00 (275, 98.8% of 326)
he/bserver.com
he/cserver.com
Number of files: 326
Number of files transferred: 277
Total file size: 2824056 bytes
Total transferred file size: 2824045 bytes
Literal data: 2824045 bytes
Matched data: 0 bytes
File list size: 5991
Total bytes sent: 2290052
Total bytes received: 4448
sent 2290052 bytes received 4448 bytes 353000.00 bytes/sec
total size is 2824056 speedup is 1.23
root@remote [/backup/rsync/nj]# ls -l
total 8
drwxr-xr-x 2 root root 4096 Feb 25 21:11 ./
drwxr-xr-x 3 root root 4096 Feb 25 21:11 ../
total 8
drwxr-xr-x 2 root root 4096 Feb 25 21:11 ./
drwxr-xr-x 3 root root 4096 Feb 25 21:11 ../
- Matt