| View previous topic :: View next topic |
| Author |
Message |
NotQuiteSane Guru


Joined: 30 Jan 2005 Posts: 444 Location: Klamath Falls, Jefferson, USA, North America, Midgarth
|
Posted: Fri Mar 27, 2009 10:05 am Post subject: |
|
|
is it possible to get an option to use lzma to compress with added to the script?
Thanks
NQS _________________ These opinions are mine, mine I say! Piss off and get your own.
As I see it -- An irregular blog, Improved with new location
To delete French language packs from system use 'sudo rm -fr /' |
|
| Back to top |
|
 |
xnmrphr n00b

Joined: 28 Jul 2009 Posts: 1
|
Posted: Tue Jul 28, 2009 7:29 pm Post subject: |
|
|
Great tool/script Thanx. |
|
| Back to top |
|
 |
El_Goretto Advocate


Joined: 29 May 2004 Posts: 2631 Location: Paris
|
Posted: Thu Sep 03, 2009 4:08 pm Post subject: |
|
|
It was the second time I used this script to restore or migrate OS from a machine to another after yeeeaaaars of use for backup.
No problem at all once again.
Still years of use to come
And thanks to its author. _________________ -PC (amd64): 2500K / P8Z68V, 8Go DDR3 1600 1.35V, HD6950, ARC1220+5xWD500RE3, M4 256Go
-Home server (hardened): N330 / NC92+3NICs Gb, 2Go DDR2
-RDNU2000
-RB450G (rOS v5.x) / 2x GS108Tv2 |
|
| Back to top |
|
 |
Gibbo_07 n00b

Joined: 15 Nov 2009 Posts: 17 Location: Brisbane, AU
|
Posted: Mon Nov 30, 2009 7:22 am Post subject: |
|
|
Another thanks to an old but still worthy of praise topic.
Have tuned the script to my needs and works a damn treat has even saved my gentoo install already. I have a question/bug report however if the author/better gifted scripter than myself can work out why when I had set
| Code: |
# patterns which should not be backed up (like iso files).
# example: default_exclude_pattern="*.iso *.divx"
# These pattern count only for files NOT listed in the $custom_include_list.
default_exclude_pattern="*.iso *.pk4"
|
I still have .pk4 files being backed up in the archive? They are located in /opt namely the quake4 data files which I don't need to have backed up, I would however like the config files and binary backed up so this is why I am trying to get this function to work rather than adding the dir to the exclude list.
+1 to anyone who can figure this out  |
|
| Back to top |
|
 |
Gibbo_07 n00b

Joined: 15 Nov 2009 Posts: 17 Location: Brisbane, AU
|
Posted: Mon Nov 30, 2009 6:26 pm Post subject: |
|
|
I worked around the issue - added /opt/quake4 to the custom include list, and set the custom exclude pattern to match *.pk4. This works, my thinking is the global exclude is broken?
Thanks. |
|
| Back to top |
|
 |
rb34 Guru

Joined: 03 Oct 2004 Posts: 361 Location: Rome, italy
|
Posted: Sun Dec 06, 2009 9:24 pm Post subject: |
|
|
Hi all!
I found that the line
| Code: | | `find /mnt -mount -name .keep` |
should be
| Code: | | `find /mnt -mount -name .keep` |
because if you don't add -mount, find descends the whole directory structure of any mounted partition!!
That "bug" leads to two problems:
* if you, as me, have a partition with many dirs, the old find command takes a lot of time!
* and, if you have a backup made with rsnapshot (with many .keep files) on a mounted partition, the final command sent to "sh -c" can exceed the argument size limit!
Adding "-mount" makes find remain on the same partition, and this is fine, as we need only to find the .keep under /mnt and not on the mounted partitions _________________ rb |
|
| Back to top |
|
 |
Gibbo_07 n00b

Joined: 15 Nov 2009 Posts: 17 Location: Brisbane, AU
|
Posted: Mon Dec 07, 2009 3:24 am Post subject: |
|
|
| rb34 wrote: | Hi all!
I found that the line
| Code: | | `find /mnt -mount -name .keep` |
should be
| Code: | | `find /mnt -mount -name .keep` |
because if you don't add -mount, find descends the whole directory structure of any mounted partition!!
That "bug" leads to two problems:
* if you, as me, have a partition with many dirs, the old find command takes a lot of time!
* and, if you have a backup made with rsnapshot (with many .keep files) on a mounted partition, the final command sent to "sh -c" can exceed the argument size limit!
Adding "-mount" makes find remain on the same partition, and this is fine, as we need only to find the .keep under /mnt and not on the mounted partitions |
Both lines you posted are identical
Also I canno't find a line matching that?
edit: my bad I have v3.5 - should have gotten it from authors webpage first time around  |
|
| Back to top |
|
 |
rb34 Guru

Joined: 03 Oct 2004 Posts: 361 Location: Rome, italy
|
Posted: Mon Dec 07, 2009 10:56 am Post subject: |
|
|
I'm sorry : the line
| Code: | | `find /mnt -name .keep` |
should be replaced with
| Code: | | `find /mnt -mount -name .keep` |
_________________ rb |
|
| Back to top |
|
 |
johabba n00b

Joined: 23 May 2004 Posts: 22
|
Posted: Tue Apr 20, 2010 6:09 pm Post subject: |
|
|
| Gibbo_07 wrote: |
edit: my bad I have v3.5 - should have gotten it from authors webpage first time around  |
How exactly do you get this script? I tried to copy/paste from the author website but it does not copy the indents cleanly. I also tried "wget 'http://blinkeye.ch/dokuwiki/doku.php/projects/mkstage4'" hoping the script was wrapped in "pre" html flags and I could delete the rest of the html.
Maybe the author can use the "pre" html flag around the script? The "pre" html flag is used around the section starting with "Backup script v3.5". This section works with wget'ing and removing the surrounding html. |
|
| Back to top |
|
 |
Killerchronic n00b

Joined: 24 Apr 2007 Posts: 63 Location: UK
|
Posted: Wed Dec 22, 2010 12:53 pm Post subject: |
|
|
| johabba wrote: | | I tried to copy/paste from the author website but it does not copy the indents cleanly. |
Not sure what your doing diff or if this has changed but a simple copy and paste worked fine for me, indents and all.
Thanks for this, been hunting for a backup solution, hopefully this will fill my need, was considering bacula but for 2 computers that are now fully setup i think its a bit much. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|