Registered Member
|
I have a remote folder that is updated regulary (about once a week)
I have access to this folder via konqueror and the fish protocol I have a local folder synchronized with dropbox Once every week i copy the contents of the remote folder to the local folder of dropbox. Is there a way to do the last action automaticaly ? |
Manager
|
lftp and cron?
per man page
|
Registered Member
|
I tried with mget but it does nt work
after i tried with mirror and it works with this command:
The only incovienant is that it gets all files. Any option that i add after the mirror commande is invalid! i get an error that is an invalid option "lftp: invalid option -- 'n'" I would like to add a wildcard to get only this type of files: backup*.gz but it does nt matter so much. Another thing that happens is that when the command is terminated, in the terminal i am remaining in the remote folder. I putted the command in a script and i added a command 'exit' but after the script is launched i am always connected to the remote folder. This is the output:
Is it a problem that it does nt close the connexion ? And the script:
After all, i intend to add this script to the ~.kde4/Autostart folder |
Manager
|
why do you use FISH? why not scp or ssh?
doesn't the "close" command close the connection?
|
Registered Member
|
You have right, after searching for the "scp" command i finaly have a working script:
The problem now is that when i run the script in a terminal it works fine, but if i set this script in the autostart scripts from systemsettings the kde session does not work. After login, i cannot launch any application, i have the application icons rebonding and nothing happens. i have to logout with ctrl+alt+backspace, the kmenu does nt responding |
Manager
|
2 thoughts
1) add a sleep command before the expect script so that the script doesn't run kde has fully started 2) use kalarm and "any time" option |
Registered Member
|
after many tries, i made a new script bash which runs the script of the backup, in this way it is launched inside a terminal, so KDE accept it, and i add the >/dev/null 2>&1 in the command because i would nt like to see the terminal open on startup.
i think it is ok now Thanks for the interesting, the patience and for the suggestions as i am not a developer, and i have just found out this functionality |
Manager
|
you should look at using Kalarm for these kind of things
|
Registered Member
|
i ve never used kalarm, i tried it, but i did nt like the window with the notification, i want the task to be executed in the background, without any notification. After that i did nt understand why it does nt let me to edit the notification (it had the description --Read only--)
|
Manager
|
you need to use a "command alarm" and in the "command output" section
make sure discard is selected note: there are 4 types of alarms: command, display, audio and email you got a notification window because you were using a "display alarm" |
Registered Member
|
ok i see better now, i should spending more time with kalarm, i ignored what it is able to do. We have tools in our system and sometimes we dont know what they can do
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]