NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rsync to ext2 filesystem issues





El 7/9/26 a las 19:36, beaker escribió:
Just a quick note that openrsync is in the pkgsrc collection; might
be worth testing.  The openrsync executable can act as either client
or server so for local-to-local archiving you can do something like

  $ openrsync --rsync-path openrsync -av --delete ../source ../dest

where openrsync basically calls itself for the destination end.

I haven't tested this yet with an ext2 mounted filesystem and would
be very interested in hearing about any testing done with it.

-b

Hi!

I have tested openrsync with no file exclusions, full openrsync copy:

netbsd-nuc# cat copia_a_mnt_datos-openrsync.sh
#!/bin/sh
openrsync --rsync-path openrsync -av --delete /etc /mnt/datos/COPIA_NETBSD_8I7/ openrsync --rsync-path openrsync -av --delete /usr/pkg/etc /mnt/datos/COPIA_NETBSD_8I7/ openrsync --rsync-path openrsync -av --delete /root /mnt/datos/COPIA_NETBSD_8I7/ openrsync --rsync-path openrsync -av --delete /home /mnt/datos/COPIA_NETBSD_8I7/ openrsync --rsync-path openrsync -av --delete /var/cron /mnt/datos/COPIA_NETBSD_8I7/ openrsync --rsync-path openrsync -av --delete /var/log /mnt/datos/COPIA_NETBSD_8I7/
echo $?
netbsd-nuc#


it seems to end well:


netbsd-nuc# ./copia_a_mnt_datos-openrsync.sh

.
..
...
....
...
..
.


home/ramiro/.cache/chromium/Default/Cache/Cache_Data/48774ef69039ba5e_0
home/ramiro/.cache/chromium/Default/Cache/Cache_Data/4877c3c8a85ca8e2_0
home/ramiro/.cache/chromium/Default/Cache/Cache_Data/48800a77e3f8b386_0
home/ramiro/.cache/chromium/Default/Cache/Cache_Data/488092d22b631d6a_0
home/ramiro/.cache/chromium/Default/Cache/Cache_Data/48832abb1ebe1774_0
home/ramiro/.cache/chromium/Default/Cache/Cache_Data/4885e60c297a8ab4_0
home/ramiro/.cache/chromium/Default/Cache/Cache_Data/4886dd87aee1c2ae_0
openrsync: error: home/ramiro/.mozilla/firefox/527cpmj0.default-default-2/storage/permanent/chrome/idb/3870112724rsegmnoittet-es.files/journals: not a directory
openrsync: error: rsync_uploader
openrsync: error: rsync_receiver
Transfer starting: 3 files
Transfer complete: 16 B sent, 131 B read, 607 B file size
Transfer starting: 62 files
log/ConsoleKit/history
log/Xorg.0.log
log/Xorg.0.log.old
log/authlog
log/cron
log/cups/error_log
log/lastlog
log/lastlogx
log/maillog
log/maillog.0.gz
log/maillog.1.gz
log/maillog.2.gz
log/maillog.3.gz
log/maillog.4.gz
log/maillog.5.gz
log/maillog.6.gz
log/messages
log/messages.0.gz
log/messages.1.gz
log/messages.2.gz
log/messages.3.gz
log/messages.4.gz
log/messages.5.gz
log/messages.6.gz
log/messages.7.gz
log/messages.8.gz
log/messages.9.gz
log/wtmp
log/wtmpx
Transfer complete: 12.9 KB sent, 624.2 KB read, 1.45 MB file size
0
netbsd-nuc#



Saving all the messages in a file called session.txt and greping for errors, I see this error, but the good thing is that it do not stop and nothing is stuck, so I can umount cleanly:


netbsd-nuc# cat session.txt |grep error
pkg_install warnings: 0, errors: 0
openrsync: error: write: Resource temporarily unavailable
openrsync: error: rsync_sender
openrsync: error: home/ramiro/.mozilla/firefox/527cpmj0.default-default-2/storage/permanent/chrome/idb/3870112724rsegmnoittet-es.files/journals: not a directory
openrsync: error: rsync_uploader
openrsync: error: rsync_receiver
log/cups/error_log

Regards.
Ramiro.




Home | Main Index | Thread Index | Old Index