[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: backing up



On 27/05/12 04:04 PM, Ralf Mardorf wrote:
On Sun, 2012-05-27 at 21:52 +0200, Ralf Mardorf wrote:
On Sun, 2012-05-27 at 20:21 +0200, Ralf Mardorf wrote:
Or you add a flag to a config in all /home/user_dirs, where .thunderbird
should be copied and check for this flag. FWIW the user name can be
different from the /home/dir's name. You still could do this and that,
but perhaps you can use ~ and writing to another user's home dir is
impossible. I don't know "how" the post session script is started,
someone using GDM might know it. A good reason not to reply off-list.

Or the most simple, from that post script run a script in ~. If there's
no script, nothing will happen (anyway check if the file exists). If
there's a script, than it's executed for explicit this user. It's
executing what the individual user wants to happen.

IOW

frank@sid:/etc/gdm3/PostSession$
cat Default
#!/bin/sh
cp -R /home/frank/.thunderbird  thunderbird.backup
exit 0

/etc/gdm3/PostSession/Default

#!/bin/sh
sh ~/a_script
exit 0

/home/user_dir/a_script

#!/bin/sh
cp -R ~/.thunderbird  ~/thunderbird.backup
exit 0

How to check if the file exists is described in the Internet.



 All good ideas...especially this one.
Thanks


--
Cheers
Frank


Reply to: