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 Setup Instructions

It is assumed that you are the user user1, that your home directory is called user1, that sabaki resides at your home directory and that root permissions are allocated to you. Root permissions are not mandatory to setup or run sabaki, however it is a good practice to follow and we'll follow it.
Connect as root providing the requested password and copy sabaki to the /root directory.

# su -
# cp /home/user1/sabaki .
# chown root sabaki
# chmod 700 sabaki
In case the distribution you use is based on Debian/Ubuntu, do instead of the above:
$ cd /root
$ sudo cp /home/user1/sabaki /root
$ sudo chown root:root sabaki
$ sudo chmod 700 sabaki


Then connect the external USB disk to a USB port, click on the device notifier taskbar icon or on the file manager of your choice, where the device should be listed, to mount it and use the command
# df

to find the mount_point. Use sudo to run the next commands too in case the root account is disabled.

USB devices are not mounted automatically by default. If the USB device is not automounted or there is no graphical environment available, as it is a usual thing for the case of servers, mount it manually. Find the device_name first ...

# fdisk -l
... create a mount_point ...
# mkdir /media/mount_point
... and mount the device :
# mount -t vfat /dev/device_name /media/mount_point -o \ uid=1000,gid=100,utf8,dmask=027,fmask=137

You can always use the

# df
command to confirm that the USB device is mounted.

Find the bus:devnum of the USB device, add it to the setup and generate a magic number :

# lsusb
# ./sabaki --add bus:devnum
# ./sabaki --magic

Assuming that the mount point is a directory name located under /media, and after you have found it and replaced the mount_point in the commands below with the directory name you found, store the hostname and the magic number in the USB device :

# echo `hostname` >> /media/mount_point/.sabaki_host
# cp /root/taisabaki/.magicnum /media/mount_point/

The setup is complete.

Run sabaki

Now everytime you want to backup the /home directory into the USB device, run the script :
# ./sabaki bus:devnum
Use a cron job to automate this on a daily basis, if you wish.

After the backup process exits, a file named sabaki_messages.txt should be stored in the USB device. If not, try to identify the error :

# ./sabaki --msg

If everything is ok, unmount the USB device and disconnect it from the host, if you wish. To unmount the USB device, either use the 'safe removal' option in case you use a desktop environment or unmount it from the command line :

# umount /media/mount_point
Check the documentation for other options.