[Dirvish] The FuhHoe post-server script

shouldbe q931 shouldbeq931 at gmail.com
Wed Jun 8 08:59:42 UTC 2011


Hi,

Apologies, I should have spent more time going through what I had written.

The "\\" most certainly does appear to work for escaping the space in
the path as that vault "runs" correctly under a "dirvish-runall
--quiet". The summary is as below
-----------------------------------------------------------------------
client: root at server1
tree: /Volumes/Studio\\ RAID/Share/
rsh: ssh
Server: dirvish.internal.lan
Bank: /RAID/Snapshots
vault: vault1
branch: default
Image: 20110608
image-temp: current
Reference: 20110607
Image-now: 2011-06-08 00:15:01
Expire: +30 days == 2011-07-08 00:15:01
exclude:
        /dev/*
        /proc/*
        lost+found
        /sys/*
SET permissions devices stats
UNSET checksum init numeric-ids sparse whole-file xdev zxfer

Command-Args: --vault vault1
Configfiles:
        /etc/dirvish/master.conf
        /RAID/Snapshots/vault1/dirvish/default.conf
bank:
        /RAID/Snapshots
expire-default: +30 days
image-default: %Y%m%d
index: gzip
post-server: /etc/dirvish/dirvish_mail
rsync-client: /opt/local/bin/rsync
summary: long

ACTION: rsync -vrltH --delete -pgo --stats -D
--rsync-path=/opt/local/bin/rsync
--exclude-from=/RAID/Snapshots/vault1/current/exclude
--link-dest=/RAID/Snapshots/vault1/20110607/tree
root at server1:/Volumes/Studio\ RAID/Share/
/RAID/Snapshots/vault1/current/tree
Backup-begin: 2011-06-08 00:15:02
post-server failed (127)
Backup-complete: 2011-06-08 00:53:36
Status: success
-----------------------------------------------------------------------

vault3 had been removed from /etc/dirvish/master.conf, so only vault1
and vault2 would have run.

The cron job error
-----------------------------------------------------------------------

00:15:01 dirvish --vault vault1
/bin/sh: RAID/Share: No such file or directory vault1:default
post-server failed (127)
00:55:05 dirvish --vault vault2
vault2:default post-server failed (1)
00:55:32 done
-----------------------------------------------------------------------

The output from the script

-----------------------------------------------------------------------
=========================================================================
ERROR:   dirvish.internal.lan:/RAID/Snapshots/vault2/current/tree/..
=========================================================================

=========================================================================
Status : Rsync: success Pre: UNKNOWN, Post: UNKNOWN
=========================================================================
directory: /RAID/Snapshots/vault2/current/tree/..
Summary (/RAID/Snapshots/vault2/current/tree/../summary):
=========================================================================
SUM:  client: root at server2
SUM:  tree: /
SUM:  rsh: ssh
SUM:  Server: dirvish.internal.lan
SUM:  Bank: /RAID/Snapshots
SUM:  vault: vault2
SUM:  branch: default
SUM:  Image: 20110608
SUM:  image-temp: current
SUM:  Reference: 20110607
SUM:  Image-now: 2011-06-08 00:55:05
SUM:  Expire: +30 days == 2011-07-08 00:55:05
SUM:  exclude:
SUM:  	/dev/*
SUM:  	/proc/*
SUM:  	lost+found
SUM:  	/sys/*
SUM:  SET permissions devices stats
SUM:  UNSET checksum init numeric-ids sparse whole-file xdev zxfer
SUM:
SUM:  Command-Args: --vault vault2
SUM:  Configfiles:
SUM:  	/etc/dirvish/master.conf
SUM:  	/RAID/Snapshots/vault2/dirvish/default.conf
SUM:  bank:
SUM:  	/RAID/Snapshots
SUM:  expire-default: +30 days
SUM:  image-default: %Y%m%d
SUM:  index: gzip
SUM:  post-server: /etc/dirvish/dirvish_mail
SUM:  rsync-client: /usr/bin/rsync
SUM:  summary: long
SUM:
SUM:  ACTION: rsync -vrltH --delete -pgo --stats -D
--rsync-path=/usr/bin/rsync
--exclude-from=/RAID/Snapshots/vault2/current/exclude
--link-dest=/RAID/Snapshots/vault2/20110607/tree root at server2:/
/RAID/Snapshots/vault2/current/tree
SUM:  Backup-begin: 2011-06-08 00:55:05

=========================================================================
Logfile (/RAID/Snapshots/vault2/current/tree/../log) (head and tail):
=========================================================================
LOG:
LOG:   ACTION: rsync -vrltH --delete -pgo --stats -D
--rsync-path=/usr/bin/rsync
--exclude-from=/RAID/Snapshots/vault2/current/exclude
--link-dest=/RAID/Snapshots/vault2/20110607/tree root at server2:/
/RAID/Snapshots/vault2/current/tree
LOG:
LOG:   receiving incremental file list
LOG:   etc/webmin/package-updates/current.cache
LOG:   etc/webmin/package-updates/updates.cache
LOG:   etc/webmin/system-status/info
LOG:   etc/webmin/system-status/history/bin
LOG:   etc/webmin/system-status/history/bout
LOG:   etc/webmin/system-status/history/cpuidle
LOG:   etc/webmin/system-status/history/cpuio
LOG:   etc/webmin/system-status/history/cpukernel
LOG:   etc/webmin/system-status/history/cpuuser
LOG:   etc/webmin/system-status/history/diskused
LOG:   etc/webmin/system-status/history/load
LOG:   etc/webmin/system-status/history/load15
LOG:   etc/webmin/system-status/history/load5
LOG:   etc/webmin/system-status/history/maxes
LOG:   etc/webmin/system-status/history/memused
LOG:   etc/webmin/system-status/history/netcounts
LOG:   etc/webmin/system-status/history/procs
LOG:   etc/webmin/system-status/history/swapused
LOG:   var/backups/shadow.bak
LOG:   var/cache/apt-show-versions/apackages
LOG:   var/cache/apt-show-versions/files
LOG:   var/cache/apt-show-versions/ipackages
LOG:   var/lib/logrotate/status
LOG:   var/lib/mlocate/mlocate.db
LOG:   var/lib/mysql/stage@/wp_options.MYD
LOG:   var/lib/mysql/stage@/wp_options.MYI
LOG:   var/log/auth.log
LOG:   var/log/kern.log
LOG:   var/log/kern.log.1
LOG:   var/log/kern.log.2.gz
LOG:   var/log/kern.log.3.gz
LOG:   var/log/messages
LOG:   var/log/mysql.log
LOG:   var/log/mysql.log.1.gz
LOG:   var/log/mysql.log.2.gz
LOG:   var/log/mysql.log.3.gz
LOG:   var/log/mysql.log.4.gz
LOG:   var/log/mysql.log.5.gz
LOG:   var/log/mysql.log.6.gz
LOG:   var/log/mysql.log.7.gz
LOG:   var/log/syslog
LOG:   var/log/syslog.1
LOG:   var/log/syslog.2.gz
LOG:   var/log/syslog.3.gz
LOG:   var/log/syslog.4.gz
LOG:   var/log/syslog.5.gz
LOG:   var/log/syslog.6.gz
LOG:   var/log/syslog.7.gz
LOG:   var/log/apache2/access.log
LOG:   var/log/apache2/error.log
LOG:   var/log/apache2/other_vhosts_access.log
LOG:   var/log/mysql/error.log
LOG:   var/log/mysql/error.log-old
LOG:   var/mysqlbackups/mysql.sql
LOG:   var/mysqlbackups/stage.sql
LOG:   var/mysqlbackups/www.sql
LOG:   var/run/motd
LOG:   var/webmin/miniserv.lastcrons
LOG:
LOG:   Number of files: 68227
LOG:   Number of files transferred: 58
LOG:   Total file size: 934929485 bytes
LOG:   Total transferred file size: 14674633 bytes
LOG:   Literal data: 5988744 bytes
LOG:   Matched data: 8685889 bytes
LOG:   File list size: 1455042
LOG:   File list generation time: 0.001 seconds
LOG:   File list transfer time: 0.000 seconds
LOG:   Total bytes sent: 71334
LOG:   Total bytes received: 7514760
LOG:
LOG:   sent 71334 bytes  received 7514760 bytes  297493.88 bytes/sec
LOG:   total size is 934929485  speedup is 123.24
LOG:
LOG:
LOG:   Post-Server: /etc/dirvish/dirvish_mail

-----------------------------------------------------------------------










On Tue, Jun 7, 2011 at 6:21 PM, Paul Slootman <paul at debian.org> wrote:
> On Tue 07 Jun 2011, shouldbe q931 wrote:
>>
>> For vault1 in  /dirvish/default.conf I have  "tree: /Volumes/Studio\\
>> RAID/Share/"
>
>> The \\ escapes the space for Dirvish.
>
> Are you sure?
>
>> On checking the vaults, Dirvish had run correctly, and the
>
> Including vault1?
> Your included output only shows vault2, not vault1 or vault3.
>
>
> Paul
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish
>


More information about the Dirvish mailing list