From: Jeff M. <in...@bi...> - 2004-02-11 19:51:18
|
HI, Trying to backup remote machine, all machines in my scenerio are FreeBSD. I've read the list archives and saw the find -E mentioned a few times. I checked and my 'find' supports this. My log for this transaction does not mention -E, however it doesn't really mention anything else. Wondering if someone can point me in the right direction. ===== log file with hostnames alterd to procect the innocent ===== flexbackup version 1.2.1 (http://flexbackup.sourceforge.net) |------------------------------------------------------------ | Checking /bin/sh on this machine... unknown (probably Bourne Shell) | Checking shell on bilbo.mydomain.ca... bash2 | Checking for required programs on host bilbo.mydomain.ca... Ok |------------------------------------------------------------ | Doing level 0 backup of set bilbo using tar | Found directory index key 200402111356 | Backup set "bilbo" (bilbo.mydomain.ca:/usr/home) |------------------------------------------------------------ | Backup of: bilbo.mydomain.ca:/usr/home | Date of this level 0 backup: Wed Feb 11 15:47:20 2004 | Date of last level 0 backup: the epoch |------------------------------------------------------------ | /tmp/collectexit.40281.sh ssh -l backup bilbo.mydomain.ca 'cd | "/usr/home" && sudo find -E . -depth ! -fstype nfs ! -fstype smbfs ! | -fstype bind ! -fstype proc ! -fstype devpts ! -fstype devfs ! -fstype | tmpfs ! -type s -print0 | sudo tar --create --null --files-from=- | --ignore-failed-read --same-permissions --no-recursion --totals --label | "level 0 bilbo.mydomain.ca:/usr/home Wed Feb 11 15:47:20 2004 | tar+gzip from gollum.mydomain.ca" --verbose --sparse -b 20 --file - | | sudo gzip -4; x=(${PIPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; | do [ ${x[$i]} -eq 0 ] || exit ${x[$i]}; i=$(($i+1)); done' | | /tmp/collectexit.40281.sh dd ibs=10k obs=10k conv=noerror | of="/dr/dr01/backup/data/bilbo.mydomain.ca-usr-home.0.200402111547.t | ar.gz" | [ ! -e /tmp/exitstatus.40281 ] |------------------------------------------------------------ find: level 0 bilbo.mydomain.ca:/usr/home Wed Feb 11 15:47:20 2004 tar+gzip from gollum.mydomain.ca nfs: unknown file type Total bytes written: 10240 (10kB, 3.1MB/s) 0+1 records in 0+1 records out 149 bytes transferred in 0.712470 secs (209 bytes/sec) ERROR: non-zero exit from: ssh -l backup bilbo.mydomain.ca cd "/usr/home" && sudo find -E . -depth ! -fstype nfs ! -fstype smbfs ! -fstype bi nd ! -fstype proc ! -fstype devpts ! -fstype devfs ! -fstype tmpfs ! -type s -print0 | sudo tar --create --null -- files-from=- --ignore-failed-read --same-permissions --no-recursion --totals --label "level 0 bilbo.mydomain.ca:/u sr/home Wed Feb 11 15:47:20 2004 tar+gzip from gollum.mydomain.ca" --verbose --sparse -b 20 --file - | sudo gzip - 4; x=(${PIPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; do [ ${x[$i]} -eq 0 ] || exit ${x[$i]}; i=$(($i+1)); done ERROR: exiting |------------------------------------------------------------ | Backup start: Wed Feb 11 15:47:20 2004 | Backup end: Wed Feb 11 15:47:21 2004 |------------------------------------------------------------ | Compressing log (bilbo.0.200402111547.gz) | Linking bilbo.latest.gz -> bilbo.0.200402111547.gz |------------------------------------------------------------ Thanks in advance. Jeff. |
From: Jeff M. <in...@bi...> - 2004-02-11 20:06:14
|
i think i found it. tar on freebsd does not support --no-recursion yet it does support -norecurse are these intended to be the same thing ? Jeff MacDOnald wrote: > HI, > > Trying to backup remote machine, all machines in my scenerio are > FreeBSD. I've read the list archives and saw the find -E mentioned a few > times. I checked and my 'find' supports this. > > My log for this transaction does not mention -E, however it doesn't > really mention anything else. Wondering if someone can point me in the > right direction. > > ===== log file with hostnames alterd to procect the innocent ===== > > > flexbackup version 1.2.1 (http://flexbackup.sourceforge.net) > > |------------------------------------------------------------ > | Checking /bin/sh on this machine... unknown (probably Bourne Shell) > | Checking shell on bilbo.mydomain.ca... bash2 > | Checking for required programs on host bilbo.mydomain.ca... Ok > |------------------------------------------------------------ > | Doing level 0 backup of set bilbo using tar > | Found directory index key 200402111356 > | Backup set "bilbo" (bilbo.mydomain.ca:/usr/home) > |------------------------------------------------------------ > | Backup of: bilbo.mydomain.ca:/usr/home > | Date of this level 0 backup: Wed Feb 11 15:47:20 2004 > | Date of last level 0 backup: the epoch > |------------------------------------------------------------ > | /tmp/collectexit.40281.sh ssh -l backup bilbo.mydomain.ca 'cd > | "/usr/home" && sudo find -E . -depth ! -fstype nfs ! -fstype smbfs ! > | -fstype bind ! -fstype proc ! -fstype devpts ! -fstype devfs ! -fstype > | tmpfs ! -type s -print0 | sudo tar --create --null --files-from=- > | --ignore-failed-read --same-permissions --no-recursion --totals --label > | "level 0 bilbo.mydomain.ca:/usr/home Wed Feb 11 15:47:20 2004 > | tar+gzip from gollum.mydomain.ca" --verbose --sparse -b 20 --file - > | | sudo gzip -4; x=(${PIPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; > | do [ ${x[$i]} -eq 0 ] || exit ${x[$i]}; i=$(($i+1)); done' | > | /tmp/collectexit.40281.sh dd ibs=10k obs=10k conv=noerror > | of="/dr/dr01/backup/data/bilbo.mydomain.ca-usr-home.0.200402111547.t > | ar.gz" > | [ ! -e /tmp/exitstatus.40281 ] > |------------------------------------------------------------ > find: level 0 bilbo.mydomain.ca:/usr/home Wed Feb 11 15:47:20 2004 > tar+gzip from gollum.mydomain.ca > nfs: unknown file type > Total bytes written: 10240 (10kB, 3.1MB/s) > 0+1 records in > 0+1 records out > 149 bytes transferred in 0.712470 secs (209 bytes/sec) > > ERROR: non-zero exit from: > ssh -l backup bilbo.mydomain.ca cd "/usr/home" && sudo find -E . -depth > ! -fstype nfs ! -fstype smbfs ! -fstype bi > nd ! -fstype proc ! -fstype devpts ! -fstype devfs ! -fstype tmpfs ! > -type s -print0 | sudo tar --create --null -- > files-from=- --ignore-failed-read --same-permissions --no-recursion > --totals --label "level 0 bilbo.mydomain.ca:/u > sr/home Wed Feb 11 15:47:20 2004 tar+gzip from gollum.mydomain.ca" > --verbose --sparse -b 20 --file - | sudo gzip - > 4; x=(${PIPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; do [ ${x[$i]} > -eq 0 ] || exit ${x[$i]}; i=$(($i+1)); done > > > ERROR: exiting > |------------------------------------------------------------ > | Backup start: Wed Feb 11 15:47:20 2004 > | Backup end: Wed Feb 11 15:47:21 2004 > |------------------------------------------------------------ > | Compressing log (bilbo.0.200402111547.gz) > | Linking bilbo.latest.gz -> bilbo.0.200402111547.gz > |------------------------------------------------------------ > > Thanks in advance. > > Jeff. > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > flexbackup-help mailing list > fle...@li... > https://lists.sourceforge.net/lists/listinfo/flexbackup-help |
From: Jeff M. <in...@bi...> - 2004-02-11 21:42:54
|
i was wrong, that doesn't fix it. jeff. Jeff MacDOnald wrote: > i think i found it. tar on freebsd does not support --no-recursion yet > it does support -norecurse > > are these intended to be the same thing ? > > Jeff MacDOnald wrote: > >> HI, >> >> Trying to backup remote machine, all machines in my scenerio are >> FreeBSD. I've read the list archives and saw the find -E mentioned a >> few times. I checked and my 'find' supports this. >> >> My log for this transaction does not mention -E, however it doesn't >> really mention anything else. Wondering if someone can point me in the >> right direction. >> >> ===== log file with hostnames alterd to procect the innocent ===== >> >> >> flexbackup version 1.2.1 (http://flexbackup.sourceforge.net) >> >> |------------------------------------------------------------ >> | Checking /bin/sh on this machine... unknown (probably Bourne Shell) >> | Checking shell on bilbo.mydomain.ca... bash2 >> | Checking for required programs on host bilbo.mydomain.ca... Ok >> |------------------------------------------------------------ >> | Doing level 0 backup of set bilbo using tar >> | Found directory index key 200402111356 >> | Backup set "bilbo" (bilbo.mydomain.ca:/usr/home) >> |------------------------------------------------------------ >> | Backup of: bilbo.mydomain.ca:/usr/home >> | Date of this level 0 backup: Wed Feb 11 15:47:20 2004 >> | Date of last level 0 backup: the epoch >> |------------------------------------------------------------ >> | /tmp/collectexit.40281.sh ssh -l backup bilbo.mydomain.ca 'cd >> | "/usr/home" && sudo find -E . -depth ! -fstype nfs ! -fstype smbfs ! >> | -fstype bind ! -fstype proc ! -fstype devpts ! -fstype devfs ! >> -fstype >> | tmpfs ! -type s -print0 | sudo tar --create --null --files-from=- >> | --ignore-failed-read --same-permissions --no-recursion --totals >> --label >> | "level 0 bilbo.mydomain.ca:/usr/home Wed Feb 11 15:47:20 2004 >> | tar+gzip from gollum.mydomain.ca" --verbose --sparse -b 20 --file - >> | | sudo gzip -4; x=(${PIPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; >> | do [ ${x[$i]} -eq 0 ] || exit ${x[$i]}; i=$(($i+1)); done' | >> | /tmp/collectexit.40281.sh dd ibs=10k obs=10k conv=noerror >> | of="/dr/dr01/backup/data/bilbo.mydomain.ca-usr-home.0.200402111547.t >> | ar.gz" >> | [ ! -e /tmp/exitstatus.40281 ] >> |------------------------------------------------------------ >> find: level 0 bilbo.mydomain.ca:/usr/home Wed Feb 11 15:47:20 2004 >> tar+gzip from gollum.mydomain.ca >> nfs: unknown file type >> Total bytes written: 10240 (10kB, 3.1MB/s) >> 0+1 records in >> 0+1 records out >> 149 bytes transferred in 0.712470 secs (209 bytes/sec) >> >> ERROR: non-zero exit from: >> ssh -l backup bilbo.mydomain.ca cd "/usr/home" && sudo find -E . >> -depth ! -fstype nfs ! -fstype smbfs ! -fstype bi >> nd ! -fstype proc ! -fstype devpts ! -fstype devfs ! -fstype tmpfs ! >> -type s -print0 | sudo tar --create --null -- >> files-from=- --ignore-failed-read --same-permissions --no-recursion >> --totals --label "level 0 bilbo.mydomain.ca:/u >> sr/home Wed Feb 11 15:47:20 2004 tar+gzip from gollum.mydomain.ca" >> --verbose --sparse -b 20 --file - | sudo gzip - >> 4; x=(${PIPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; do [ ${x[$i]} >> -eq 0 ] || exit ${x[$i]}; i=$(($i+1)); done >> >> >> ERROR: exiting >> |------------------------------------------------------------ >> | Backup start: Wed Feb 11 15:47:20 2004 >> | Backup end: Wed Feb 11 15:47:21 2004 >> |------------------------------------------------------------ >> | Compressing log (bilbo.0.200402111547.gz) >> | Linking bilbo.latest.gz -> bilbo.0.200402111547.gz >> |------------------------------------------------------------ >> >> Thanks in advance. >> >> Jeff. >> >> >> ------------------------------------------------------- >> SF.Net is sponsored by: Speed Start Your Linux Apps Now. >> Build and deploy apps & Web services for Linux with >> a free DVD software kit from IBM. Click Now! >> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >> _______________________________________________ >> flexbackup-help mailing list >> fle...@li... >> https://lists.sourceforge.net/lists/listinfo/flexbackup-help > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > flexbackup-help mailing list > fle...@li... > https://lists.sourceforge.net/lists/listinfo/flexbackup-help |
From: Jeff M. <in...@bi...> - 2004-02-12 14:41:24
|
Yeah, I tried something along those lines.. I took the "ssh" line and plunked it into a file then ran it.. ie: here is the content of the file ssh -l backup bilbo.mydomain.ca cd "/usr/home" && sudo find -E . -depth ! -fstype nfs ! -fsty pe smbfs ! -fstype bind ! -fstype proc ! -fstype devpts ! -fstype devfs ! -fstype tmpfs ! -ty pe s -print0 | sudo tar --create --null --files-from=- --ignore-failed-read --same-permission s --no-recursion --totals --label "level 0 bilbo.mydomain.ca:/usr/home Thu Feb 12 10:39:02 20 04 tar+gzip from gollum.mydomain.ca" --verbose --sparse -b 20 --file - | sudo gzip -4; x=(${P IPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; do [ ${x[$i]} -eq 0 ] || exit ${x[$i]}; i=$(( $i+1)); done Then i ran it "sh foo.sh" and got -su-2.05b$ sh foo.sh foo.sh: 1: Syntax error: Bad substitution Soooo I took out the first part [the ssh command] and just started the script with the "sudo tar" line. I put this modified version on bilbo and tried to run it and got the exact same error. So i tink the error must be that chunk in the end, but i don't know shell scripting very well so i'm kinda lost. Jeff. John Reynolds wrote: > Jeff MacDOnald wrote: > >> i think i found it. tar on freebsd does not support --no-recursion yet >> it does support -norecurse >> >> are these intended to be the same thing ? >> > > What version of FreeBSD are you using? In FreeBSD 5.1-current (I'm too > lazy to upgrade to 5.2 just yet) I see: > > -n, --norecurse > --no-recursion avoid descending automatically in directories > > Seems to be the same thing. > > All I can offer as advice to debug is try logging into bilbo as "backup" > and try running the find command itself. That's about the only thing you > can do is try to isolate what is dying piece-meal. > > -Jr > > |
From: Jeff M. <in...@bi...> - 2004-02-12 15:28:02
|
ok, i found it. i went into flexbackup perl file and took out all the -fstype stuff. and it worked. i'm not using any weird file systems to i'm not concerned. jeff. Jeff MacDOnald wrote: > Yeah, I tried something along those lines.. > > I took the "ssh" line and plunked it into a file then > ran it.. > > ie: here is the content of the file > > ssh -l backup bilbo.mydomain.ca cd "/usr/home" && sudo find -E . -depth > ! -fstype nfs ! -fsty > pe smbfs ! -fstype bind ! -fstype proc ! -fstype devpts ! -fstype devfs > ! -fstype tmpfs ! -ty > pe s -print0 | sudo tar --create --null --files-from=- > --ignore-failed-read --same-permission > s --no-recursion --totals --label "level 0 bilbo.mydomain.ca:/usr/home > Thu Feb 12 10:39:02 20 > 04 tar+gzip from gollum.mydomain.ca" --verbose --sparse -b 20 --file - | > sudo gzip -4; x=(${P > IPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; do [ ${x[$i]} -eq 0 ] || > exit ${x[$i]}; i=$(( > $i+1)); done > > Then i ran it "sh foo.sh" and got > > -su-2.05b$ sh foo.sh > foo.sh: 1: Syntax error: Bad substitution > > Soooo I took out the first part [the ssh command] and just started the > script with the "sudo tar" line. I put this modified version on bilbo > and tried to run it and got the exact same error. > > So i tink the error must be that chunk in the end, but i don't know > shell scripting very well so i'm kinda lost. > > Jeff. > > > > John Reynolds wrote: > >> Jeff MacDOnald wrote: >> >>> i think i found it. tar on freebsd does not support --no-recursion yet >>> it does support -norecurse >>> >>> are these intended to be the same thing ? >>> >> >> What version of FreeBSD are you using? In FreeBSD 5.1-current (I'm too >> lazy to upgrade to 5.2 just yet) I see: >> >> -n, --norecurse >> --no-recursion avoid descending automatically in directories >> >> Seems to be the same thing. >> >> All I can offer as advice to debug is try logging into bilbo as >> "backup" and try running the find command itself. That's about the >> only thing you can do is try to isolate what is dying piece-meal. >> >> -Jr >> >> > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > flexbackup-help mailing list > fle...@li... > https://lists.sourceforge.net/lists/listinfo/flexbackup-help |