The script is simple as a text file with the commands you type into the terminal just with one extra line at the beginning.
Scripts are pretty unforgiving if you type something wrong, so you must have everyting working perfectly, then copy paiste from terminal into your script.
Be sure it starts with
Code: Select all
#/bin/sh
Create the text file, with the first line to make it a script
Code: Select all
echo #/bin/sh >> backupscript.sh
Code: Select all
echo echo Starting execuitation of backupscript.sh, please launch with sudo privilages >> backupscript.sh
echo apt-get install -f amarok vlc opera xmms nvidia-glx-177 >> backupscript.sh
echo echo now fixing permissions of shared folders >>backupscript.sh
chmod 755 -R ~/shared >> backupscript.sh
echo echo displaying your IP and restoring your files from rsync backup >>backupscript.sh
echo rsync -avz zeus::desktop Desktop >>backupscript.sh