about
yabs is a litte backup script for those like me, that cant find a rather little modular full-backup script that works for windows and linux.
yabs utilizes only make, tar and bzip2 in a bash-like shell.
yabs is gpl
downloads
contact
Kristof Klee
n00bian@gmx.at
installation
just untar the package into a new directory and make sure bash, make, tar and bzip2 are available.
under windows this means u have to install cygwin (http://www.cygwin.com)
configuration
next you have to change the configuration to match your system settings.
all configuration files should be available in seperate configuration-directory (like the default etc) which has to contain the file settings.mk and a directory users which contains backup-scripts for every user (a dummy.mk is available in the default installation)
configure settings
edit settings.mk to fit your needs. change the USER and SYSTEM variable to declare which user- and system-backup-scripts should be involked in a full-backup. and include the correct system-spezific settings-file.
the system-spezific settings-file mostly contains variables for directorys. the default are from my system, so u have to change them for yours
configure system-backup
add the rules u want to the SYSTEM variable in settings.mk
check the backup-scripts at lib/system for valid rules
configure a new user-backup-script
copy the dummy.mk file in the user-configurations directory an give it the name of the user and add the username to the USER variable in settings.mk so he gets involved on a backup.
after that u just have to edit the new user-backup-script to fit the users needs. just add dependency-rules for the “all” rule.
check the backup-scripts at lib/apps and lib/games for valid rules
run backup
here some examples how to start a backup
run backup with configuration in directory “etc”
make backup DIR_ETC=etc
run system-backup with configuration in directory “etc”
make system DIR_ETC=etc
run user-backup with configuration in directory “etc”
make users DIR_ETC=etc
run spezific system-backup-script with configuration in directory “etc”
make spezificsystemrule DIR_ETC=etc
run spezific user-backup-script with configuration in directory “etc”
make username DIR_ETC=etc
run spezific user-backup-script with spezific rule and configuration in directory “etc”
make -f etc/users/username.mk spezificuserrule DIR_ETC=etc
default backup-scripts
applications
- firefox
- thunderbird
- evolution
- gaim
- gnupg
- jedit
games
- ut2003
- ut2004
- warcraft 3
system
- kernel
- xfree86
- filezilla-server
create a new backup-script
write a *.mk script for the spezific application/game/subsystem and place in one of the lib directorys (apps, games, system). the rules in the file have to be named unique.
if u need system-spezific settings, place variables in the settings.mk or system-spezific settings file
after that u just have to include the new script-file in lib/lib_user.mk or lib/lib_system.mk
