Registered Member
|
Hello,
I try to set up a backup with a smb server at work. The IT departement wont allow any sort of mounting and the only connection, I was able to set up, is via kfmclient copy. This solution does work for single files in combination with a bash script and crontab. As the backups are supposed to be used on whole folder structures, new folders need to be created on the remote smb share. I can do this by hand, using konqueror but I was not able to do it on the shell. Zipping the complete folder will take too long (several GB) and smb is the only connection to the server. I hope someone has any ideas. Greetings Johannes |
Registered Member
|
I solved the problem about creating folders.
It was rather simple, as I will now copy the whole folder and not create it. This is what I built:
When I populate the share for the first time, everything is working very smooth. But the second time, konqueror always asks me if I really want to overwrite the files/folders. How can I tell kfmclient to alway accept overwriting old files? |
Administrator
|
Try something like this:
I only tested this on my KDE Trunk system however - and only with local files - it did copy the contents of the Media/ folder recursively however.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
The --noninteractive option does work, but --overwrite does not.
One step closer to my goal though Any further ideas? edit: Is it possible to change a konqueror config file to make "overwrite all" the standard behaviour? |
Administrator
|
Unfortunately, a quick study of the source code of both the KDE 4 and KDE 3 versions indicates that if it doesn't overwrite by default as far as I can tell. Therefore Konqueror's settings are not likely to have an impact on it.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
oh, those are bad news.
What I tried next was using the kfmclient move command like this:
It does not work. I guess this is due to the smb protocol, because it does work for local files. I am not that much into file deleting on network drives. Any idea about solving this would be very much appreciated. |
Administrator
|
Have you tried the following?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
kfmclient remove sadly doesnt work.
My solution so far: I move the files to a local folder and delete them there |
Administrator
|
Unfortunate. The output of "kfmclient --commands" should list all operations it supports.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]