You can add a script in your logout file.
So that it saves the file to a tarball and stores it somewhere in the filesystem/on the pen drive.
Code:
gksu gedit /etc/gdm/PostSession/Default
Will get you there.
And before the line that says "exit 0"
Have something like this:
Code:
if [ -d "$HOME/Documents" ]
then
export name=$(whoami)
export time=$(date | awk '{print $2$3"_"$6}')
tar cvf $name-Documents-$time.tar.gz $HOME/Documents
mv $name-Documents-$time.tar.gz /media/FLASHDRIVE/BACKUP/
fi
That will save tarballs of your Documents folder.
The naming convention is simple enough:
username-Documents-date_year
ie:
iain-Documents-Apr24_2008.tar.gz
Is that verbose enough for you?
Regards
Iain
Bookmarks