hey, i spent a lot of today learning the bits and bobs of bash scripting, and i have made my first real bash script.
it is something that everyone probably has, it automatically backs up files/directories. If you are a non-root user, it will only back up your home directory, giving u the options to backup all hidden files/directories or not. If your root, it will backup your home directory (/root) aswell as any directories/files that u specify as 'system files'. it will also log the previous locations of the 'system files' for easy replacement.
lol you can tell this is my first ey, anyway i thort i might aswell make it publically available (cos i find it very useful, and i want to show it off! :P) so a link is attached below. all comments are welcome, but remember this is my first bash script, so some of my methods may be very crude / stupid, im sure there are programs/commands that automate some of my processes, but i dont know them, and it was more fun this way.
anyway here we go:
http://homepage.ntlworld.com/markcmc...x/backupnow.sh
weighs in at 252 lines btw. oh and if u decide to run it, make sure u havent got a /sys.backup directory, cos that is what it uses by default and it will overwrite anything that was previously there. i dont think anyone will be using that directory name but u never know.