Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.