So i moved from rdiff-backup which atm isn't suiting my needs to flexbackup
hoping it would work out of the box. Did it? Of course not! After all... what
is life with out some challenge.
My set up is pretty simple. I have 1 machine (my back up box) that contains
several windows and unix network mount points. /mnt/pc /mnt/unix etc... I
wanted to use rsync since it seemed to work nice in rdiff and fast for
transfers. My first attempt on getting a back up of the unix systems was no
issue. But when I tried it on the Windows back up... well I had lots of changes
to do...
Anyway I figured out (being very small perl coder) that flexbackup should
require some form of escape when it came upon a directory with spaces. The conf
takes in several directories sorted by a space. In order to over come this I
had to place the "" container under a '' container.
Code:
$set{'anthony'} = '"/mnt/anthony/Documents and Settings/anthony ry/My
Documents/" "/mnt/anthony/Documents and Settings/anthony ry/Start Menu/"
"/mnt/anthony/Documents and Settings/anthony ry/Desktop/"';
Now I finally got flexbackup to work using this. The challenge which I haven't
figured out was to get rsync to do the same.
Code:
flexbackup version 1.2.1 (http://flexbackup.sourceforge.net)
/etc/flexbackup.conf syntax OK
Use of uninitialized value in pattern match (m//) at /usr/bin/flexbackup line
5718.
Use of uninitialized value in pattern match (m//) at /usr/bin/flexbackup line
5718.
Use of uninitialized value in split at /usr/bin/flexbackup line 5727.
|------------------------------------------------------------
| Checking /bin/sh on this machine... bash2
|------------------------------------------------------------
| Doing level 0 backup of set anthony using rsync
| Found directory index key 200706250533
| Backup set "anthony" ("/mnt/anthony/Documents and Settings/anthony ry/My
Documents/" "/mnt/anthony/Documents and Settings/anthony ry/Start Menu/"
"/mnt/anthony/Documents and Settings/anthony ry/Desktop/"
"/mnt/anthony/Documents and Settings/anthony ry/Local Settings/Application
Data/Adobe/" "/mnt/anthony/Documents and Settings/anthony ry/Local
Settings/Application Data/VanDyke/" "/mnt/anthony/Documents and
Settings/anthony ry/Local Settings/Application Data/Mozilla/"
"/mnt/anthony/Documents and Settings/anthony ry/Local Settings/Application
Data/Thunderbird/" "/mnt/anthony/Documents and Settings/All Users/Application
Data/nView_Profiles/" "/mnt/anthony/Documents and Settings/All
Users/Application Data/Apple Computer/" "/mnt/anthony/Documents and
Settings/All Users/Start Menu/" "/mnt/anthony/Fonts/" "/mnt/anthony/MSArt/"
"/mnt/anthony/WINDOWS/Fonts/")
|------------------------------------------------------------
| Backup of: /mnt/anthony/Documents and Settings/anthony ry/My Documents
| Date of this level 0 backup: Mon Jun 25 14:05:13 2007
| Date of last level 0 backup: the epoch
|------------------------------------------------------------
| No pruning defined for this tree.
| cd "/mnt/anthony/Documents and Settings/anthony ry/My Documents" && \
| find . -depth -xdev ! -type s ! -regex ".*/[Cc]ache/.*" -print | sed -e \
| "s/\.\///g" | rsync --include-from=- --exclude=* --archive --verbose \
| --delete --delete-excluded /mnt/anthony/Documents and Settings/anthony \
| ry/My Documents/ /mnt/fantom/flexbackup.anthony/mnt-anthony-Documents \
| and Settings-anthony ry-My Documents.0
|------------------------------------------------------------
building file list ... rsync: link_stat "/mnt/anthony/Documents" failed: No
such file or directory (2)
rsync: link_stat "/mnt/anthony/Documents and Settings/anthony ry/My
Documents/and" failed: No such file or directory (2)
rsync: link_stat "/mnt/anthony/Documents and Settings/anthony ry/My
Documents/Settings/anthony" failed: No such file or directory (2)
rsync: link_stat "/mnt/anthony/Documents and Settings/anthony ry/My
Documents/ry/My" failed: No such file or directory (2)
rsync: link_stat "/mnt/anthony/Documents and Settings/anthony ry/My
Documents/Documents/." failed: No such file or directory (2)
rsync: link_stat "/mnt/fantom/flexbackup.anthony/mnt-anthony-Documents" failed:
No such file or directory (2)
rsync: link_stat "/mnt/anthony/Documents and Settings/anthony ry/My
Documents/and" failed: No such file or directory (2)
rsync: link_stat "/mnt/anthony/Documents and Settings/anthony ry/My
Documents/Settings-anthony" failed: No such file or directory (2)
rsync: link_stat "/mnt/anthony/Documents and Settings/anthony ry/My
Documents/ry-My" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 2.65 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at main.c(980)
[sender=2.6.9]
ERROR: non-zero exit from:
cd "/mnt/anthony/Documents and Settings/anthony ry/My Documents" && find .
-depth -xdev ! -type s ! -regex ".*/[Cc]ache/.*" -print | sed -e "s/\.\///g" |
rsync --include-from=- --exclude=* --archive --verbose --delete
--delete-excluded /mnt/anthony/Documents and Settings/anthony ry/My Documents/
/mnt/fantom/flexbackup.anthony/mnt-anthony-Documents and Settings-anthony ry-My
Documents.0
ERROR: exiting
|------------------------------------------------------------
| Backup start: Mon Jun 25 14:05:13 2007
| Backup end: Mon Jun 25 14:05:31 2007
|------------------------------------------------------------
| Linking anthony.latest -> anthony.0.200706251405
|------------------------------------------------------------
Which doesn't work at all. I then decide to just use a -type "copy" to get the
back up done at least.
Code:
Use of uninitialized value in pattern match (m//) at /usr/bin/flexbackup line
5718.
Use of uninitialized value in pattern match (m//) at /usr/bin/flexbackup line
5718.
Use of uninitialized value in split at /usr/bin/flexbackup line 5727.
<---- SNIP---->
|------------------------------------------------------------
| Backup of: /mnt/anthony/Documents and Settings/anthony ry/My Documents
| Date of this level 0 backup: Tue Jun 26 05:26:17 2007
| Date of last level 0 backup: the epoch
|------------------------------------------------------------
| No pruning defined for this tree.
| cd "/mnt/anthony/Documents and Settings/anthony ry/My Documents" && \
| find . -depth -xdev ! -type s ! -regex ".*/[Cc]ache/.*" -print0 | cpio \
| -o -0 -H newc -v | (mkdir -p \
| /mnt/fantom/flexbackup.anthony/mnt-anthony-Documents and \
| Settings-anthony ry-My Documents.0 ; cd \
| /mnt/fantom/flexbackup.anthony/mnt-anthony-Documents and \
| Settings-anthony ry-My Documents.0 ; cpio -i -m -d )
|------------------------------------------------------------
mkdir: cannot create directory `and': Permission denied
mkdir: cannot create directory `Settings-anthony': Permission denied
mkdir: cannot create directory `ry-My': Permission denied
mkdir: cannot create directory `Documents.0': Permission denied
<-- SNIP BUNCH OF FILES HERE --- >
ERROR: non-zero exit from:
cd "/mnt/anthony/Documents and Settings/anthony ry/My Documents" && find .
-depth -xdev ! -type s ! -regex ".*/[Cc]ache/.*" -print0 | cpio -o -0 -H newc
-v | (mkdir -p /mnt/fantom/flexbackup.anthony/mnt-anthony-Documents and
Settings-anthony ry-My Documents.0 ; cd
/mnt/fantom/flexbackup.anthony/mnt-anthony-Documents and Settings-anthony ry-My
Documents.0 ; cpio -i -m -d )
ERROR: exiting
|------------------------------------------------------------
| Backup start: Tue Jun 26 05:26:17 2007
| Backup end: Tue Jun 26 05:45:58 2007
|------------------------------------------------------------
| Linking anthony.latest -> anthony.0.200706260526
|------------------------------------------------------------
This time it seemed like it was backing up the data but it wasn't. It definatly
wasn't using the full directory it is suppose to be in and at the end errored
out removing what it actually did grab.
So the questions are:
a) What am I doing wrong?
b) Is there any easier way to specify lots of directories for back up besides
listing them all inside the set with a space like im doing?
c) What do I need to do to resolve these issues above?
Thanks guys.
-anthony
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
flexbackup-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flexbackup-help