LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Anyone use Krusader? (https://www.linuxquestions.org/questions/linux-software-2/anyone-use-krusader-449048/)

DoctorWynn 05-27-2006 10:25 AM

Anyone use Krusader?
 
I'm trying to use Krusader to compare and synch files between my website on an ftp server, and my local public_html folder. What I want Krusader to do, is copy from the server to my local machine, only the files that don't exist on my local machine, or the ones that have same file names, but different dates.

Problem is, no matter what I try, the compare button always wants to copy EVERY file on the server to my local folder even though the file names, dates, and sizes are exact. I don't want it to do this every single time, it will take forever to complete. I want to use it weekly or so to keep my local copy of my site sync'd with my live website.

Anyone have an idea how I can set it up to work this way? It's gotta be possible, but I can't figure it out and it's starting to frustrate me.

Thanx for any help!

CrashedAgain 05-27-2006 10:46 AM

Never tried much with Krusader but you should be able to do this from command line using either cp command with the -u option or using rsync command. See manpages for details.

zahadumy 05-27-2006 06:21 PM

Why use Krusader? I would write my own script for this... Maybe just because I like scripting :)

DoctorWynn 05-27-2006 07:15 PM

Quote:

Originally Posted by CrashedAgain
Never tried much with Krusader but you should be able to do this from command line using either cp command with the -u option or using rsync command. See manpages for details.

How to do this with an ftp server? I tried "cp -u ftp.website.com /home/tom/public_html" and "cp -u ftp://website.com /home/tom/public_html" and each one says "cannnot stat ftp.website.com : no such file or directory"


And as for the script option, I will look into that, as I like that idea, but I'm not a linux guru so it will be difficult for me to figure out. Although I have made one in the past, it took me hours to figure out and get right. :) And all it did was unzip a downloaded file and upload it to my server. So you can see I'm not very good with this stuff which is why I went with krusader to begin with. The gui is my friend. :)

CrashedAgain 05-27-2006 08:39 PM

Perhaps rsync would work. the rsync manpage seems to indicate it will transfer to/from a url destination.
I confess I have not used it much; I ran across it when I was remastering Knoppix disks but I did remember that it would only copy files that needed updating & ignore the rest.
I am also pretty much of a gui user, maybe zahadumy can help you with a script.

zahadumy 05-27-2006 08:53 PM

Quote:

Originally Posted by DoctorWynn
And as for the script option, I will look into that, as I like that idea, but I'm not a linux guru so it will be difficult for me to figure out. Although I have made one in the past, it took me hours to figure out and get right. :) And all it did was unzip a downloaded file and upload it to my server. So you can see I'm not very good with this stuff which is why I went with krusader to begin with. The gui is my friend. :)

Like CrashedAgain said, I could help you with writing a script, but I waited for you to say if you're interested or not, because I don't like when I'm asking something and other people assume what I want and answer to a question I didn't ask or tell me some stuff I'm not interested in. And also, you said you need an application with a GUI and you're a newbie in scripting... Anyway, one of the reasons I love linux is you can do a lot of things directly from console, unlike Windows where you have to download and install a specific application that does what you need to do... Maybe someone else knows an application for what you need... It's not big deal and I'm pretty sure someone did it before... :) And btw, if you do a script for that, you can do yourself a GUI in Java or some other programming language :)


All times are GMT -5. The time now is 06:05 PM.