Re: backing up



On Sun, 2012-05-27 at 16:51 -0400, Frank McCormick wrote:
On 27/05/12 04:42 PM, Ralf Mardorf wrote:

/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.

Before I go off-line a last hint ;p.

spinymouse@precise:~$ [ -f /etc/fstubby ]&& echo yes
spinymouse@precise:~$ echo $?
1
spinymouse@precise:~$ [ -f /etc/fstab ]&& echo yes
yes
spinymouse@precise:~$ echo $?
0
spinymouse@precise:~$ test -f /etc/fstab&& echo yes
yes
spinymouse@precise:~$ echo $?
0
spinymouse@precise:~$ man test
spinymouse@precise:~$ [ ! -f /etc/fstubby ]&& echo yes
yes

Hth,
Ralf




All filed away....you're turning me into a CLI fiend...next thing
I'll be using MUTT :) Well.......not for a while....




Take care that "cp -R" is ok, perhaps you should use "cp -pr".




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: 1338153538.2298.112.camel@precise">http://lists.debian.org/1338153538.2298.112.camel@precise



Relevant Pages

  • Re: how to exclude the packges in dist-upgrade
    ... echo "you're not root, go away." ... So in your case, as root: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: format grep ouput
    ... echo "please enter search pattern" ... That's a whole education in bash scripting. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: format grep ouput
    ... echo "please enter search pattern" ... It chokes on directories with spaces in them, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • make-kpkg UTS version problem
    ... echo "Please correct this."; exit 2 ... The UTS Release version in include/linux/version.h ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: backing up
    ... How to check if the file exists is described in the Internet. ... spinymouse@precise:~$ echo $? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)