|
|
01-02-2013
, 09:55 AM
|
|
|
Posts: 3,640 |
Thanked: 2,420 times |
Joined on Jan 2010
@ Israel
|
#12
|
| The Following User Says Thank You to Schturman For This Useful Post: | ||
|
|
01-06-2013
, 04:25 AM
|
|
Posts: 6 |
Thanked: 4 times |
Joined on Jan 2013
|
#13
|
#/bin/bash FTPU="username" FTPP="ftp password" FTPS="remote ftp server" FTPF="remote ftp server directory" LOCALD="/home/user/MyDocs/DCIM" LOGFILE="/tmp/backup.log" if ifconfig | grep -q -e 192.168.1.200 then echo Started Pictures Backup at: `date` >> $LOGFILE /opt/lftp/bin/lftp -u $FTPU,$FTPP -e " set ftp:ssl-allow no;set ssl:verify-certificate no; mirror --only-newer --verbose --continue --reve$ echo Pictures Update Finished at: `date` >> $LOGFILE else echo "Not at home, not synching anything: `date`" >> $LOGFILE fi
|
|
01-07-2013
, 05:15 PM
|
|
Posts: 208 |
Thanked: 253 times |
Joined on Oct 2009
@ Helsinki, Suomi (Finland)
|
#14
|
/opt/lftp/bin/lftp -u $FTPU,$FTPP -e " set ftp:ssl-allow no;set ssl:verify-certificate no; mirror --only-newer --verbose --continue --reve$
Note, userids on your system which do not appear in /etc/shadow will NOT have operational crontabs,
|
|
01-07-2013
, 11:44 PM
|
|
Posts: 6 |
Thanked: 4 times |
Joined on Jan 2013
|
#15
|
/opt/lftp/bin/lftp -u $FTPU,$FTPP -e " set ftp:ssl-allow no;set ssl:verify-certificate no; mirror --only-newer --verbose --continue --reverse $LOCALD $FTPF; exit" $FTPS
| The Following User Says Thank You to blackcoder For This Useful Post: | ||
|
|
01-07-2013
, 11:48 PM
|
|
Posts: 6 |
Thanked: 4 times |
Joined on Jan 2013
|
#16
|
https://help.ubuntu.com/community/Cr...ser_Level_Cron
Let's hope someone else with better knowledge of harmattan's user permissions and cron's workings will chime in.
Jan 8 14:40:01 (2013) /USR/SBIN/CRON[22640]: (CRON) error (do_command:initgroups(0) failed: Operation not permitted) Jan 8 14:40:01 (2013) /USR/SBIN/CRON[22639]: (CRON) error (grandchild #22640 failed with exit status 1)
| The Following User Says Thank You to blackcoder For This Useful Post: | ||
|
|
01-13-2013
, 05:33 AM
|
|
Posts: 208 |
Thanked: 253 times |
Joined on Oct 2009
@ Helsinki, Suomi (Finland)
|
#17
|
![]() |
| Thread Tools | Search this Thread |
|
I also did something and it worked but with more ugly way and with 2 small scripts
Lausanne & Lyon de descente...
----------------
Schturman home page
N9 QuickTweak - If you like my work, you can donate here . Thanks!