From: Ajay S. <ss...@am...> - 2004-01-23 17:41:30
|
On Thu, 2004-01-22 at 19:11, Edwin Huffstutler wrote: > [ Stefan Nicolin wrote: ] > > with flexbackup 1.2.0 is there a way to exclude certain files? So far I > > understand it, pruning works only or directorys. > > True; the prune is meant for whole subtrees. > > You could craft an exclude regular expression to hit only certain files. > (the $exclude_expr array) This might be a different problem altogether but it's kinda similar. I'm trying to backup windows share that I have mounted locally on the backup server using samba. And I'm just grabbing the main drives: C$, D$, F$, etc... And it will always fail on pagefile.sys because it's "busy". Is there a way to tell flexbackup to ignore that file? Here's what I have in exclude_expr: $exclude_expr[0] = '.*/[Cc]ache/.*'; $exclude_expr[1] = '.*~$'; $exclude_expr[2] = '.*pagefile\.sys.*'; $exclude_expr[3] = '.*PAGEFILE\.SYS.*'; And the output from a typical flexbackup session: flexbackup version 1.2.0 (http://flexbackup.sourceforge.net) /etc/flexbackup.conf syntax OK |------------------------------------------------------------ | Checking 'buffer' on this machine... Ok | Checking /bin/sh on this machine... bash2 |------------------------------------------------------------ | Doing level 1 backup of set server3 using tar | Backup set server3 (/mnt/server3_c /mnt/server3_d /mnt/server3_f /mnt/server3_i) |------------------------------------------------------------ | Backup of: /mnt/server3_c | Date of this level 1 backup: Fri Jan 23 03:37:57 2004 | Date of last level 0 backup: Sun Jan 18 06:56:00 2004 |------------------------------------------------------------ | cd "/mnt/server3_c" && sudo find . -regex "\./\(WINNT\)/.*" -prune -o ! \ | -type s \( -newer "/backup/flex/lib/mnt-server3_c.0" -or -cnewer \ | "/backup/flex/lib/mnt-server3_c.0" \) ! -regex ".*/[Cc]ache/.*" ! \ | -regex ".*~"$ ! -regex ".*pagefile\.sys.*" ! -regex ".*PAGEFILE\.SYS.*" \ | -print0 | sudo tar --create --null --files-from=- --ignore-failed-read \ | --same-permissions --no-recursion --totals --sparse --file - | gzip -4 \ | | buffer -m 20m -p 75 -t -o \ | "/backup/flex/data/mnt-server3_c.1.200401230337.tar.gz" |------------------------------------------------------------ find: ./pagefile.sys: Text file busy Total bytes written: 40960 (40kB, 1.9kB/s) Kilobytes Out 5 ERROR from backup, exiting offending command(s): cd "/mnt/server3_c" && sudo find . -regex "\./\(WINNT\)/.*" -prune -o ! -type s \( -newer "/backup/flex/lib/mnt-server3_c.0" -or -cnewer "/backup/flex/lib/mnt-server3_c.0" \) ! -regex ".*/[Cc]ache/.*" ! -regex ".*~"$ ! -regex ".*pagefile\.sys.*" ! -regex ".*PAGEFILE\.SYS.*" -print0 | sudo tar --create --null --files-from=- --ignore-failed-read --same-permissions --no-recursion --totals --sparse --file - | gzip -4 | buffer -m 20m -p 75 -t -o "/backup/flex/data/mnt-server3_c.1.200401230337.tar.gz" Thanks! Ajay |