![](https://seccdn.libravatar.org/avatar/f52afcd77f125ff8fa7d3b61354d3f7d.jpg?s=120&d=mm&r=g)
Greetings, Does anybody run batch files with a "dump" of the system? f yes what exactly do you use. Cheers, Jimmy
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
jimmy Pierre wrote:
Greetings,
Does anybody run batch files with a "dump" of the system? f yes what exactly do you use.
I've never used 'dump' - it's not even installed by default. For backups I use 'find -newer' and cpio. I tend to do weekly full backups and daily incremental. /Per Jessen, Zürich
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
jimmy Pierre wrote:
'find -newer' and cpio.
Thanks Per,
Any particular order? And, do you use a batch file in CRON or both?
Something like this: cd <dir to be backed up> find . -newer lastbackup | \ tee lastbackup | cpio --create -H tar --block-size=128 | \ bzip2 -c >backup.bz2 I run this (and the rest of the script) via cron : MAILTO=zink.anode@enidan.com 0 2 * * 1,2,3,4,5,6 root <script> <directory> 0 2 * * 0 root <script> <directory> full When I run the full backup, I just touch the lastbackup file with timestamp=19700101000000. /Per Jessen, Zürich
![](https://seccdn.libravatar.org/avatar/814f1c9f82898e057fe8d46a106381fd.jpg?s=120&d=mm&r=g)
Something like this:
cd <dir to be backed up> find . -newer lastbackup | \ tee lastbackup | cpio --create -H tar --block-size=128 | \ bzip2 -c >backup.bz2
why not just ... | tee lastbackup | tar -T- --no-r -cvjf backup.tbz2 then? Jan Engelhardt --
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
Jan Engelhardt wrote:
Something like this:
cd <dir to be backed up> find . -newer lastbackup | \ tee lastbackup | cpio --create -H tar --block-size=128 | \ bzip2 -c >backup.bz2
why not just
... | tee lastbackup | tar -T- --no-r -cvjf backup.tbz2
then?
No particular reason - I've just always used cpio. I didn't even know tar had the -T option. /Per Jessen, Zürich
![](https://seccdn.libravatar.org/avatar/74d9a5be12daf219bfad983289c824f6.jpg?s=120&d=mm&r=g)
I have used dump (ufsdump for Solaris) for years. The basic syntax to do a full backup is: dump 0f <dump device> <filesystem> Dump Device can be a tape device, filename, etc. The file system is whatever file system you want to dump. You can either specify by the device (/dev/hda1) or by the name ( / ). You can write a script to dump all file systems on your system, something like this: ---cut--- !#/bin/sh FS="/dev/sda1 /dev/sda2 /dev/sda3" for f in $FS; do dump 0f /dev/nrst0 $f done ----cut--- In this case I used /dev/nrst0 as the dump device, the n specifies no rewind and rst0 is a tape device. Mike jimmy Pierre wrote:
Greetings,
Does anybody run batch files with a "dump" of the system? f yes what exactly do you use.
Cheers, Jimmy
![](https://seccdn.libravatar.org/avatar/25bbc96d9c53647354cb724e744b2222.jpg?s=120&d=mm&r=g)
On 9/21/06, Mike Noble
I have used dump (ufsdump for Solaris) for years. The basic syntax to do a full backup is:
dump 0f <dump device> <filesystem>
Dump Device can be a tape device, filename, etc. The file system is whatever file system you want to dump. You can either specify by the device (/dev/hda1) or by the name ( / ).
You can write a script to dump all file systems on your system, something like this:
---cut--- !#/bin/sh
FS="/dev/sda1 /dev/sda2 /dev/sda3"
for f in $FS; do dump 0f /dev/nrst0 $f done ----cut---
In this case I used /dev/nrst0 as the dump device, the n specifies no rewind and rst0 is a tape device.
Mike
jimmy Pierre wrote:
Greetings,
Does anybody run batch files with a "dump" of the system? f yes what exactly do you use.
Cheers, Jimmy
-- You need to verify that dump is not filesystem type specific.
I use XFS primarily for my data and it comes with xfsdump. Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
![](https://seccdn.libravatar.org/avatar/74d9a5be12daf219bfad983289c824f6.jpg?s=120&d=mm&r=g)
This is true, dump really only works on ext2 and ext3 file systems. Mike Greg Freemyer wrote:
On 9/21/06, Mike Noble
wrote: I have used dump (ufsdump for Solaris) for years. The basic syntax to do a full backup is:
dump 0f <dump device> <filesystem>
Dump Device can be a tape device, filename, etc. The file system is whatever file system you want to dump. You can either specify by the device (/dev/hda1) or by the name ( / ).
You can write a script to dump all file systems on your system, something like this:
---cut--- !#/bin/sh
FS="/dev/sda1 /dev/sda2 /dev/sda3"
for f in $FS; do dump 0f /dev/nrst0 $f done ----cut---
In this case I used /dev/nrst0 as the dump device, the n specifies no rewind and rst0 is a tape device.
Mike
jimmy Pierre wrote:
Greetings,
Does anybody run batch files with a "dump" of the system? f yes what exactly do you use.
Cheers, Jimmy
-- You need to verify that dump is not filesystem type specific.
I use XFS primarily for my data and it comes with xfsdump.
Greg
![](https://seccdn.libravatar.org/avatar/f52afcd77f125ff8fa7d3b61354d3f7d.jpg?s=120&d=mm&r=g)
Thanks Per, Mike, Greg and Jan for your input. I appreciate that. Cheers, Jimmy Www.nui.fr
![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2006-09-21 at 10:42 -0700, Mike Noble wrote:
This is true, dump really only works on ext2 and ext3 file systems.
And reiserfs has no equivalent utility. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFE8QTtTMYHG2NR9URAr1VAJ0bBvDlD+XUkSHLJv16kOuAzLUmlQCgiXSb 3ivfl4gAbIXxdivM4wQTV+o= =YSV1 -----END PGP SIGNATURE-----
participants (7)
-
Carlos E. R.
-
Greg Freemyer
-
Jan Engelhardt
-
jimmy Pierre
-
jimmypierre.rouen.france
-
Mike Noble
-
Per Jessen