#922 Issue closed: path differences and missing log files when comparing sshfs and rsync transfers

Labels: enhancement, fixed / solved / done

tcerna opened issue at 2016-07-15 13:21:

Following files and directories are created on the server (rearserver) when sshfs is used

# ls -l /home/rear
total 112084
drwxr-x---. 2 root root        74 Jul 14 12:31 rearclient
# ls -l /home/rear/rearclient/
total 112264
-rw-------. 1 root root       202 Jul 14 12:31 README
-rw-------. 1 root root    173138 Jul 14 12:31 rear.log
-rw-------. 1 root root 114774016 Jul 14 12:31 rear-rearclient.iso
-rw-------. 1 root root       291 Jul 14 12:31 VERSION
#

The rest uses the same configuration, but word "sshfs" was replaced by "rsync"

  • rear version (/usr/sbin/rear -V):
    rear-1.17.2-1.el7.noarch
  • OS version (cat /etc/rear/os.conf or lsb_release -a):
    RHEL-7.2
  • rear configuration files (cat /etc/rear/site.conf or cat /etc/rear/local.conf):
# cat /etc/rear/local.conf 
OUTPUT=ISO
OUTPUT_URL="rsync://192.168.122.153/home/rear"

Reproducer:

Server (rearserver machine)
====
# ls -l /home/rear
total 0
#

Client (rearclient machine)
====
# cat /etc/rear/local.conf 
OUTPUT=ISO
OUTPUT_URL="rsync://192.168.122.153/home/rear"
# rear -v mkbackup
Relax-and-Recover 1.17.2 / Git
Using log file: /var/log/rear/rear-rearclient.log
Creating disk layout
Creating root filesystem layout
Copying files and directories
Copying binaries and libraries
Copying kernel modules
Creating initramfs
Making ISO image
Wrote ISO image: /var/lib/rear/output/rear-rearclient.iso (110M)
Copying resulting files to rsync location
Copying files '/var/lib/rear/output/rear-rearclient.iso' to rsync location
root@192.168.122.153's password: 
sending incremental file list
rear-rearclient.iso

sent 114784016 bytes  received 31 bytes  25507566.00 bytes/sec
total size is 114769920  speedup is 1.00
removed directory: '/tmp/rear.1u5plRbyvRwBuo3/outputfs/rearclient'
#

Server (rearserver machine)
====
# ls -l /home/rear
total 112084
-rw-------. 1 root root 114774016 Jul 14 12:29 rear-rearclient.iso
#

tcerna commented at 2016-07-15 13:22:

For completeness sake:

Server
====
# ls -l /home/rear
total 0
#

Client
====
# cat /etc/rear/local.conf 
OUTPUT=ISO
OUTPUT_URL="sshfs://192.168.122.153/home/rear"
# rear -v mkbackup
Relax-and-Recover 1.17.2 / Git
Using log file: /var/log/rear/rear-rearclient.log
Creating disk layout
Creating root filesystem layout
Copying files and directories
Copying binaries and libraries
Copying kernel modules
Creating initramfs
root@192.168.122.153's password: 
Making ISO image
Wrote ISO image: /var/lib/rear/output/rear-rearclient.iso (110M)
Copying resulting files to sshfs location
#

Server
====
# ls -l /home/rear
total 0
drwxr-x---. 2 root root 74 Jul 14 12:47 rearclient
# ls -l /home/rear/rearclient/
total 112264
-rw-------. 1 root root       202 Jul 14 12:47 README
-rw-------. 1 root root    173140 Jul 14 12:47 rear.log
-rw-------. 1 root root 114774016 Jul 14 12:47 rear-rearclient.iso
-rw-------. 1 root root       291 Jul 14 12:47 VERSION
#

gdha commented at 2016-08-05 15:15:

@tcerna The OUTPUT_URL scheme is copying now all required files in a consistent matter with latest commit

jsmeix commented at 2016-09-21 12:54:

Closing because it is "fixed".


[Export of Github issue for rear/rear.]