Re: [flexbackup-help] flexbackup error

2009-03-20 Thread Robert Canner
On Fri, 2009-03-20 at 00:35 +, Robert Canner wrote: 

 On Thu, 2009-03-19 at 10:51 +, Niall Brosnan wrote:
  I can confirm that I'm using a stock flexbackup 1.2.1-6 on ubuntu 8.10
  without this issue.
...
 
  I do get the same find: `./.gvfs': Permission denied entry in my
  log,
  but it is not a showstopper. What backup format and medium are you
  choosing?
... 
 
 Many thanks Niall. I'm using flexbackup version 1.2.1-6, with .tar.gz
 output format, writing to a 4.3GB drive in an external housing,
   ...
 rob...@venus:~$ egrep -v -e '(^#|^$)' /etc/flexbackup.conf
 $type = 'tar';
 $set{'home'} = /home;
   ...
   ... Anyway, I'm now thinking I
 should try to unmount my .gvfs before allowing flexbackup to start ...


Yes, that was the solution. According to 'mount', gnome-fuse-daemon was
mounted on my .gvfs. I needed to unmount it before the backup.

First I reverted to my original flexbackup.conf (the one without any
.gvfs prune/exclude expressions). Then I used

$ fusermount -u ~/.gvfs

to unmount the daemon from .gvfs. Then

$ sudo flexbackup -set home

backed up /home without errors. 'find' simply treated .gvfs as an empty
directory :-)

Q. I didn't create .gvfs ... Where did it come from and who mounted this
daemon on it?
A. As far as I can tell (1) GNOME automatically creates ~/.gvfs (2) it
is designed as a mount point for gnome-fuse-daemon (3) GNOME
automatically mounts it. (gnome-fuse-daemon is in the gvfs-fuse
package.)

Q. What happens if you unmount this? Is it safe?
A. It seems fairly safe. It certainly seems sensible to unmount it
before root tries to back up your home directory.  GNOME re-mounts it
automatically next time you log in.

Package versions: gvfs-fuse 0.2.3-0ubuntu4, gvfs 0.2.3-0ubuntu4,
fuse-utils 2.7.2-1ubuntu2, gnome-about 1:2.22.1-0ubuntu6gnewsense1.

Many thanks Niall,
Robert

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


Re: [flexbackup-help] flexbackup error

2009-03-19 Thread Niall Brosnan
Hi Robert,
I can confirm that I'm using a stock flexbackup 1.2.1-6 on ubuntu 8.10
without this issue.
I usually use a different product (backuppc actually) for nightly home
directories, so I thought I might just not have been hit by it. I use
flexbackup for mail spools and config directories as well as for snapshot
backups before doing any reconfiguration tasks...

I added a /home stanza to my flexbackup.conf and ran the job both with users
logged in
to GNOME (so ,gvfs was active), and late at night so that it wasn't.
I do get the same find: `./.gvfs': Permission denied entry in my log,
but it is not a showstopper. What backup format and medium are you choosing?
Would you mind posting your settings using something like:
*
egrep -v -e '(^#|^$)'  /etc/flexbackup.conf

*
Do you actually have a set defined as /home, or is it /home/robert ?
Your prune expressions are not being honoured according to your log.
You might find defining a set as /home/robert and adding

 $prune{'/home/robert'} = .gvfs;

might be more effective.

You should probably put it into an exclude_expr as well as in:
*$exclude_expr[2] = '.*/.gvfs/.*';

*Good luck with it,
I'll be watching with interest.
I've been using flexbackup for years, and there's always a way out of these
hiccups!
NiallB
*

*2009/3/18 Robert Canner robert.can...@tiscali.co.uk

 I'm experiencing a problem which sounds similar to Andrew Schein's. My
 home directory contains a 'directory' called .gvfs, of zero bytes; when
 I ask flexbackup to back up /home (sudo flexbackup -set home), it starts
 creating a .tar.gz file, does about 100 MB, then stops and deletes
 the .tar.gz file. And in the log there's a similar 'find' error:

 === START EXTRACT ==

 find: ./robert/.gvfs: Permission denied
 === END OF EXTRACT ===

 I'm running gNewSense 2.1 Deltah (based on Ubuntu 8.04 LTS--Hardy).

 I keep trying to add a $prune line for /home, but perhaps my regexp
 syntax could be improved:
  $prune{'/home'} = .gvfs;
  $prune{'/home'} = robert/.gvfs;
  $prune{'/home'} = robert/\.gvfs;
  $prune{'/home'} = \.*\\.gvfs;
 None of these prevent 'find' from erroring on that file.

 Can I prune my way out of this?
 Any advice gratefully received :-)

 Thank you very much,
 Robert


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


Re: [flexbackup-help] flexbackup error

2009-03-19 Thread Robert Canner
On Thu, 2009-03-19 at 10:51 +, Niall Brosnan wrote:
 I can confirm that I'm using a stock flexbackup 1.2.1-6 on ubuntu 8.10
 without this issue.
 ...

 I do get the same find: `./.gvfs': Permission denied entry in my
 log,
 but it is not a showstopper. What backup format and medium are you
 choosing?
 Would you mind posting your settings using something like:
 
 egrep -v -e '(^#|^$)'  /etc/flexbackup.conf
 ... 

Many thanks Niall. I'm using flexbackup version 1.2.1-6, with .tar.gz
output format, writing to a 4.3GB drive in an external housing,
connected by USB. The external drive has ext3 file system and 2.7 GB
free space.

In fact that extract from the log was +before+ I added any $prune
expressions. Here is the flexbackup.conf that was used:

rob...@venus:~$ egrep -v -e '(^#|^$)' /etc/flexbackup.conf
$type = 'tar';
$set{'home'} = /home;
$set{'etc'} = /etc;
$set{'usrlocal'} = /usr/local;
$set{'var'} = /var;
$prune{'/'} = tmp proc;
$compress = 'gzip'; 
$compr_level = '4'; 
$buffer = 'buffer'; 
$buffer_megs = '10';
$buffer_fill_pct = '75';
$buffer_pause_usec = '100';
$device = '/media/backup4mb/venus';
$blksize = '10';
$mt_blksize = 0;
$pad_blocks = 'true';
$remoteshell = 'ssh';
$remoteuser = '';
$label = 'true'; 
$verbose = 'true';   
$sparse = 'true';
$indexes = 'true';   
$staticfiles = 'false';
$atime_preserve = 'false';
$traverse_fs = 'false';
$exclude_expr[0] = '.*/[Cc]ache/.*';
$exclude_expr[1] = '.*~$';
$erase_tape_set_level_zero = 'true';
$erase_rewind_only = 'false';
$logdir = '/var/log/flexbackup';
$comp_log = 'gzip'; 
$staticlogs = 'false';  
$prefix = '';   
$tmpdir = '/tmp';   
$stampdir = '/var/lib/flexbackup';
$index = '/var/lib/flexbackup/index';
$keyfile = '00-index-key';   
$sprefix = '';   
$afio_nocompress_types = 'mp3 MP3 Z z gz gif zip ZIP lha jpeg jpg JPG
taz tgz deb rpm bz2 lzo';
$afio_echo_block = 'false';
$afio_compress_threshold = '3';
$afio_compress_cache_size = '2';
$tar_echo_record_num = 'false';
$cpio_format = 'newc';
$dump_length = '0';
$dump_use_dumpdates = 'false';
$star_fifo = 'true';
$star_acl = 'true';
$star_format = 'exustar';
$star_echo_block_num = 'false';
$pax_format = 'ustar';
$zip_nocompress_types = 'mp3 MP3 Z z gz gif zip ZIP lha jpeg jpg JPG taz
tgz deb rpm bz2 lzo';
$pkgdelta_archive_list = 'rootonly';
$pkgdelta_archive_unowned = 'true';
$pkgdelta_archive_changed = 'true';
1;

I used the command sudo flexbackup -set home. After the message
find: ./robert/.gvfs: Permission denied, the log continued:

=== START EXTRACT ===
level 0 /home Wed Mar 18 17:44:38 2009 tar+gzip from venus
./lost+found/
./robert/.bash_logout
... 

Total bytes written: 217221120 (208MiB, 6.9MiB/s)
Kilobytes Out 98135

ERROR: non-zero exit from:
find . -depth -xdev ! -type s ! -regex .*/[Cc]ache/.* ! -regex .*~$
-print0

ERROR: exiting
|
| Backup start: Wed Mar 18 17:44:38 2009
=== END OF EXTRACT ===


Based on your suggestions, I have added 3 lines to flexbackup.conf:

$set{'homerobert'} = /home/robert;
$prune{'/home/robert'} = .gvfs;
$exclude_expr[2] = '.*/.gvfs/.*';

and run sudo flexbackup -set homerobert. Again in Nautilus, I saw it
gradually write a .tar.gz file of about 90 MB, then finally delete the
output file:

=== LOG 2 EXTRACT ===
| Backup of: /home/robert
| Date of this level 0 backup: Thu Mar 19 23:54:10 2009
| Date of last level 0 backup: the epoch
|
| cd /home/robert  /tmp/flexbackup.6857.venus/collectexit.6857.sh
find \
|   . -regex \./\(.gvfs\)/.* -prune -o -xdev ! -type s ! -regex \
|   .*/[Cc]ache/.* ! -regex .*~$ ! -regex .*/.gvfs/.* -print0 | \
|   /tmp/flexbackup.6857.venus/collectexit.6857.sh tar --create --null \
|   --files-from=- --ignore-failed-read --same-permissions
--no-recursion \
|   --totals --label level 0 /home/robert Thu Mar 19 23:54:10 2009 \
|   tar+gzip from venus --verbose --sparse -b 20 --file - | \
|   /tmp/flexbackup.6857.venus/collectexit.6857.sh gzip -4 | \
|   /tmp/flexbackup.6857.venus/collectexit.6857.sh buffer -m 10m -p 75
-s \
|   10k -t -o /media/backup4mb/venus/home-robert.0.200903192354.tar.gz
| [ ! -e /tmp/flexbackup.6857.venus/exitstatus.6857 ]
|
find: warning: you have specified the -xdev option after a non-option
argument -regex, but options are not positional (-xdev affects tests
specified before it as well as those specified after it).  Please
specify options before other arguments.

find: ./.gvfs: Permission denied
level 0 /home/robert Thu Mar 19 23:54:10 2009 tar+gzip from venus
./
./.bash_logout
...

Kilobytes Out 98257

ERROR: non-zero exit from:
find . -regex \./\(.gvfs\)/.* -prune -o -xdev ! -type s !
-regex .*/[Cc]ache/.* ! -regex .*~$ ! -regex .*/.gvfs/.* -print0

ERROR: exiting./.dmrc

|
| Backup start: 

Re: [flexbackup-help] flexbackup error

2008-06-01 Thread Tim Kellers
Andrew I. Schein wrote:
 I am running the command using sudo on Ubuntu 8.04.  However, this is
 some kind of special file/directory that even root can't rename (use
 mv command) or chmod u+w.  It has zero bytes, unlike a symbolic
 links or ordinary directories.

 If I try to rm -rf it, there is a Device or resource busy message.

 Thanks,

 -Andy

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 flexbackup-help mailing list
 flexbackup-help@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flexbackup-help
   
You might want to use ls -lO to see if any special chflags have been set 
to prevent the deletion of the files or directory.  From man ls(1):

  -O  Include the file flags in a long (-l) output.  the chflags(1) 
options show up as - or + signs.

I'm using FreeBSD but, I think, Ubuntu supports the same ls(1) options.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


Re: [flexbackup-help] flexbackup error

2008-06-01 Thread TeckniX _
If root has trouble with the file, I would definitely look into what/who
created that file and see what can be done. In the meantime I'll look up
some of my flexbackup scripts and see if I can figure out an exception rule.

On Sun, Jun 1, 2008 at 12:58 AM, Andrew I. Schein [EMAIL PROTECTED]
wrote:

 I forgot to include the permissions...

 dr-x--  2 ais ais0 2008-06-01 00:56 .



 On Sat, May 31, 2008 at 11:11 PM, Tecknix [EMAIL PROTECTED] wrote:
  How are you running the backup? Root? Also what are the permissions on
 the
  file?
 
 
 
  On May 31, 2008, at 9:23 PM, Andrew I. Schein [EMAIL PROTECTED]
 
  wrote:
 
  Hi -
 
  I am encountering an error with flexbackup caused by the .gvfs special
  file in my home directory.  An example is below.
 
  Is there a way to pass in an argument to find to exclude this
 directory?
 
  Thanks,
 
  Andy
 
  |
  | Checking /bin/sh on this machine... unknown
  |
  | Doing level 0 backup of set all using tar
  | All sets = backup
  | Found directory index key 200805312021
  | Backup set backup (/home)
  |
  | Backup of: /home
  | Date of this level 0 backup: Sat May 31 21:08:39 2008
  | Date of last level 0 backup: the epoch
  |
  | cd /home  /home/tmp/flexbackup.9297.desk/collectexit.9297.sh find
 .
  \
  |   -depth -xdev ! -type s ! -regex .*/[Cc]ache/.* ! -regex .*~$ ! \
  |   -regex .*\.gvfs.* -print0 | \
  |   /home/tmp/flexbackup.9297.desk/collectexit.9297.sh tar --create
 --null
  \
  |   --files-from=- --ignore-failed-read --same-permissions
 --no-recursion
  \
  |   --totals --label level 0 /home Sat May 31 21:08:39 2008 tar+gzip
 from
  \
  |   desk --verbose --sparse -b 20 --file - | \
  |   /home/tmp/flexbackup.9297.desk/collectexit.9297.sh gzip -4 | \
  |   /home/tmp/flexbackup.9297.desk/collectexit.9297.sh dd ibs=10k
 obs=10k
  \
  |   conv=noerror
 of=/media/wdc/linux-backups/home.0.200805312108.tar.gz
  | [ ! -e /home/tmp/flexbackup.9297.desk/exitstatus.9297 ]
  |
  find: ./ais/.gvfs: Permission denied
  level 0 /home Sat May 31 21:08:39 2008 tar+gzip from desk
  ...
 
 
 -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  flexbackup-help mailing list
  flexbackup-help@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/flexbackup-help
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


Re: [flexbackup-help] flexbackup error

2008-05-31 Thread Andrew I. Schein
I forgot to include the permissions...

dr-x--  2 ais ais0 2008-06-01 00:56 .



On Sat, May 31, 2008 at 11:11 PM, Tecknix [EMAIL PROTECTED] wrote:
 How are you running the backup? Root? Also what are the permissions on the
 file?



 On May 31, 2008, at 9:23 PM, Andrew I. Schein [EMAIL PROTECTED]
 wrote:

 Hi -

 I am encountering an error with flexbackup caused by the .gvfs special
 file in my home directory.  An example is below.

 Is there a way to pass in an argument to find to exclude this directory?

 Thanks,

 Andy

 |
 | Checking /bin/sh on this machine... unknown
 |
 | Doing level 0 backup of set all using tar
 | All sets = backup
 | Found directory index key 200805312021
 | Backup set backup (/home)
 |
 | Backup of: /home
 | Date of this level 0 backup: Sat May 31 21:08:39 2008
 | Date of last level 0 backup: the epoch
 |
 | cd /home  /home/tmp/flexbackup.9297.desk/collectexit.9297.sh find .
 \
 |   -depth -xdev ! -type s ! -regex .*/[Cc]ache/.* ! -regex .*~$ ! \
 |   -regex .*\.gvfs.* -print0 | \
 |   /home/tmp/flexbackup.9297.desk/collectexit.9297.sh tar --create --null
 \
 |   --files-from=- --ignore-failed-read --same-permissions --no-recursion
 \
 |   --totals --label level 0 /home Sat May 31 21:08:39 2008 tar+gzip from
 \
 |   desk --verbose --sparse -b 20 --file - | \
 |   /home/tmp/flexbackup.9297.desk/collectexit.9297.sh gzip -4 | \
 |   /home/tmp/flexbackup.9297.desk/collectexit.9297.sh dd ibs=10k obs=10k
 \
 |   conv=noerror of=/media/wdc/linux-backups/home.0.200805312108.tar.gz
 | [ ! -e /home/tmp/flexbackup.9297.desk/exitstatus.9297 ]
 |
 find: ./ais/.gvfs: Permission denied
 level 0 /home Sat May 31 21:08:39 2008 tar+gzip from desk
 ...

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 flexbackup-help mailing list
 flexbackup-help@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flexbackup-help


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


Re: [flexbackup-help] flexbackup error

2008-05-31 Thread Andrew I. Schein
I am running the command using sudo on Ubuntu 8.04.  However, this is
some kind of special file/directory that even root can't rename (use
mv command) or chmod u+w.  It has zero bytes, unlike a symbolic
links or ordinary directories.

If I try to rm -rf it, there is a Device or resource busy message.

Thanks,

-Andy

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


Re: [flexbackup-help] Flexbackup error: offending command afio -o -E non existent file?!?

2004-11-05 Thread Göran Törnqvist
Hello, and thanks for the reply :)

Checked man afio and the -1 parameter is there (Version 2.4.7) but -1 m
means:

-1 Defined letters are a for ignoring all possible warnings on exit, and m
for ignoring the warning about missing files, which will occur when, on
creating an archive, a file whose name was read  from  the standard  input
is  not found.  The default is -1 m.

So if the file is missing it shouldn't return an error, right, so my
assumption is that the error here should be something different. Anyway when
I tried to change to -1 a checking /etc/flexbackup.conf ,the -1 m switch
wasn't there. I'll need to read and learn more about flexbackup I guess :)


I will check the flexbackup -ignore-errors if that switch can help me. But
is that good behavior, to tell flexbackup to ignore errors?



Thanks again...



Best Regards

Goran


- Original Message - 
From: Scott Coburn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 11:37 PM
Subject: Re: [flexbackup-help] Flexbackup error: offending command
afio -o -E non existent file?!?


On Thursday 04 November 2004 16:42, Göran Törnqvist wrote:

 afio -o -E /tmp/nocompress.60176 -z -1 m -P gzip -Q -4 -Z -M 2m -T
3k -v -b 10k


Goran,

The problem is that 'afio' is returning to the flexbackup script
with an error (some file missing or some such?).

The command parameters passed by flexbackup to afio have changed
in the recent versions.  See the afio man page, specifically the '-1'
parameter.  You can edit the flexbackup script to fix this.  Search
for '-1 m ' and change it to '-1 a ' (note the trailing space character).
(You can see the '-l m' in the afio command line above.)

See also the flexbackup '-ignore-errors' parameter to help solve
your problem.

Scott

-- 
* Scott Coburn
* Brookhaven National Laboratory
* [EMAIL PROTECTED] 631.344.7110
* This message brought to you by Debian Linux.


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88alloc_id065op=ick
___
flexbackup-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flexbackup-help



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
flexbackup-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


Re: [flexbackup-help] Flexbackup error: offending command afio -o -E non existent file?!?

2004-11-04 Thread Scott Coburn
On Thursday 04 November 2004 16:42, Göran Törnqvist wrote:

 afio -o -E /tmp/nocompress.60176 -z -1 m -P gzip -Q -4 -Z -M 2m -T 3k -v -b 10k 
  

Goran,

The problem is that 'afio' is returning to the flexbackup script
with an error (some file missing or some such?).

The command parameters passed by flexbackup to afio have changed
in the recent versions.  See the afio man page, specifically the '-1'
parameter.  You can edit the flexbackup script to fix this.  Search
for '-1 m ' and change it to '-1 a ' (note the trailing space character).
(You can see the '-l m' in the afio command line above.)

See also the flexbackup '-ignore-errors' parameter to help solve
your problem.

Scott

-- 
* Scott Coburn
* Brookhaven National Laboratory
* [EMAIL PROTECTED] 631.344.7110
* This message brought to you by Debian Linux.


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88alloc_id065op=click
___
flexbackup-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flexbackup-help