Be informed!

about free software
Free Software Foundation Europe

Would you switch to

GNU/Linux?
Set yourself free, lower your costs and empower yourself today!

We assist you to try a shiny new distribution for home or business use, plus personalised seminars and support.

Do you have a deeper interest? Learn how to teach others.

Send us an email to:
info at sakura dot gr

SABAKI




NAME

sabaki - a bash script to backup a multiuser host to an external USB target


SYNOPSIS

sabaki bus:devnum [dir1 dir2 dir3 ...]

sabaki --add bus:devnum

sabaki --magic

sabaki --msg

sabaki --print

sabaki --replace bus:devnum [bus:devnum]

sabaki --version

DESCRIPTION

Assuming that a source partition and a target partition are mounted on a GNU/Linux host, backup means to copy from a source host partition to a target partition. This command is currently restricted to one target that is connected to one host through a USB port. The hostname should be stored at .sabaki_host in target during setup. The root runs the backup process, whereas the user mounts or unmounts devices, not the backup scripts.

The bus:devnum argument corresponds to the ID of a connected target and is shown in the list with the USB devices that are connected to host. The magic number is a /dev/urandom generated key stored in a .magicnum file to match a host with a target. If the file is missing from target, the user has to copy the file there during setup. The device ID along with the magic_number, an arbitrary, with no spaces 16 characters long string, determine the correct target. The magic_number should be stored at .magicnum in target. If bus:devnum is the only argument, the backup process will include everything under the /home directory of the host. A list of directories shown as arguments, is normally required, in the case in which the default directory exceeds the capacity of the target. Then each given directory should be specified by its full path.

sabaki is using rsync to backup files and directories. rsync has got options for files up to max size and for patterns to exclude files.

OPTIONS

--add bus:devnum
Add a device ID for a connected target to setup.

--magic
Generates a new magic number for host.

--msg
View messages after the backup process exits.

--print
Print the contents of the setup.

--replace bus:devnum [bus:devnum]
Replace or delete a device ID from setup.

--version
Print version number of sabaki program and exit. Any other argument after this option is ignored.

RETURN VALUE

A non-zero exit code is returned for each error case. The corresponding message is stored in sabaki_messages.txt.

FILES

/root/taisabaki/sabaki_last.txt
/root/taisabaki/sabaki_messages.txt
/root/taisabaki/sabaki_setup.txt
/root/taisabaki/exclude.txt
/root/taisabaki/.magicnum

NOTES

This version keeps in target the files that are deleted from source. To change this behaviour for the backups taken hereafter, find the lines in the code with the rsync command and add --del to the list of arguments. That will be the default behaviour for the next version.

AUTHOR

Written by Stelios Stavroulakis.

BUGS

Report bugs to info at sakura . gr.

COPYRIGHT

Copyright © 2009-2010 Stelios Stavroulakis License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

lsusb(8), mount(8), df(1)




sabaki 0.2 January 2010