Re: xfsdump/xfsrestore question

Iustin Pop
2007-02-24T15:10:51Z

On Sat, Feb 24, 2007 at 05:04:33PM +0200, Leon Kolchinsky wrote:
> Now, when I've tried to make non-interactive xfsdump I'vo got > prompt with
> no action, like this
> # xfsdump -f /data/backup2.file -L 'session1' -M 'media1" /
> >
> #
>
> So, I've got to Ctrl+C the process.
>
> Questions:
> 1) What could be the syntax problem in the above command?
> 2) Any examples for incremental xfsdump (non-interactive, i.e. run from
> cronjob) would be very welcome (and also comments about xfsrestore from
> these backups).

My non-interactive backup is (fragment from a script):

xfsdump -e -l $level -L "dump $lv at $day" - /$lv | gzip -v9 > $dest_file

and it works without prompts. Combining this with LVM snapshots also
makes consistent backups.

Regards,
Iustin