On Sun, 2012-05-27 at 19:27 +0200, Ralf Mardorf wrote: > On Sun, 2012-05-27 at 12:49 -0400, Frank McCormick wrote: > > On 27/05/12 10:04 AM, Ralf Mardorf wrote: > > > If you added > > >>>>> cp -R ~/.thunderbird ~/.thunderbird.backup > > > to a script, than the backup must be in ~/. > > > > > > Perhaps the script runs "cd /var/lib/gdm3" and you added "cp -R > > > ~/.thunderbird .thunderbird.backup", the backup without the path? > > > > > > You should post what exactly you edited. > > > > > > - Ralf > > > > > > > > > > You're partly right :) > > > > frank@sid:/etc/gdm3/PostSession$ > > cat Default > > #!/bin/sh > > cp -R /home/frank/.thunderbird thunderbird.backup > > exit 0 > > > > frank@sid:/etc/gdm3/PostSession$ > > > > I failed to add "/home/frank" or ~ to the destination, perhaps > > thinking wrongly cp would copy to the original directory. > > My mistake...now fixed... > > cp -R /home/frank/.thunderbird /home/frank/.thunderbird.backup > Always would do this for /frank, even if another user would close a > session?
PS: Perhaps it's impossible for another user to write to /frank? > > cp -R ~/.thunderbird ~/.thunderbird.backup > Always would do a backup for the current user closing a session, even if > this user would not like to have a backup? > > Perhaps you need to check if user /frank does close a session and then > only backup. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1338139817.2298.77.camel@precise