hi folks,
after years of gentoo experience i decided to get in touch with bash scripting. for the well known purpose of backing up my system.
first step would be to name the folders/partitions i want to backup. for the sake of beaty i want to try something like this. i hope you excuse my ignorance to bash, therefore i'll try with pseudo code. i hope i'll improve soon...
Code:
#!/bin/bash
# ------- Source Locations ---------
SOURCE_PARTITIONS="/ /home /usr /var"
# --------- System Setup -----------
BACKUP_DESTINATION=/mnt/backup
FSTAB=/etc/fstab
#here should be some magick
for SOURCE in $SOURCE_PARTITIONS
do
#get corresponding path from fstab <---------------------- need help here
done
again sorry for my noobness!!!
cheers!
alex