Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Easily make a full system backup (stage4)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 16, 17, 18  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 471
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Fri Mar 27, 2009 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message
xnmrphr
n00b
n00b


Joined: 28 Jul 2009
Posts: 1

PostPosted: Tue Jul 28, 2009 7:29 pm    Post subject: Reply with quote

Great tool/script :) Thanx.
Back to top
View user's profile Send private message
El_Goretto
Advocate
Advocate


Joined: 29 May 2004
Posts: 2862
Location: Paris

PostPosted: Thu Sep 03, 2009 4:08 pm    Post subject: Reply with quote

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: 2500K/P8Z68V, 8Go DDR3 1600 1.35V, R9-290, ARC1220+5xWD500RE3, M4 256Go
-Home servers (hardened): µ-serv N40L, 2Go ECC + NF9D-2700, 4Go
-Réseau: ERL-3 + 3x switches GS108Tv2
-NAS: RDNU2000
Back to top
View user's profile Send private message
Gibbo_07
n00b
n00b


Joined: 15 Nov 2009
Posts: 29
Location: Brisbane, AU

PostPosted: Mon Nov 30, 2009 7:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Gibbo_07
n00b
n00b


Joined: 15 Nov 2009
Posts: 29
Location: Brisbane, AU

PostPosted: Mon Nov 30, 2009 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
rb34
Guru
Guru


Joined: 03 Oct 2004
Posts: 361
Location: Rome, italy

PostPosted: Sun Dec 06, 2009 9:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gibbo_07
n00b
n00b


Joined: 15 Nov 2009
Posts: 29
Location: Brisbane, AU

PostPosted: Mon Dec 07, 2009 3:24 am    Post subject: Reply with quote

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 :oops:

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
View user's profile Send private message
rb34
Guru
Guru


Joined: 03 Oct 2004
Posts: 361
Location: Rome, italy

PostPosted: Mon Dec 07, 2009 10:56 am    Post subject: Reply with quote

I'm sorry :) : the line
Code:
`find /mnt -name .keep`

should be replaced with
Code:
`find /mnt -mount -name .keep`

_________________
rb
Back to top
View user's profile Send private message
johabba
n00b
n00b


Joined: 23 May 2004
Posts: 22

PostPosted: Tue Apr 20, 2010 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Killerchronic
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2007
Posts: 80
Location: UK

PostPosted: Wed Dec 22, 2010 12:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 16, 17, 18
Page 18 of 18

 
Jump to:  
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