LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2014, 02:31 PM   #1
mrotsliah
LQ Newbie
 
Registered: May 2009
Posts: 25

Rep: Reputation: 15
Question about how to update files


I'm hoping there is a command line script that will do the following. I have folder A on my laptop with files and folder B on my external hard drive with files. I want to periodically run a scrip that will look at the files in A and B. If there are files in A that are not in B, then I would like to add those files to the folder to B, leaving A untouched. Is there a command line code for this?

I've been using rsync, but I need the space on my laptop now. I still want to keep the files on my external hard drive for later use.

Thanks.
 
Old 06-03-2014, 04:21 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
A few different methods are explained at the site below:

http://www.techrepublic.com/blog/lin...automatically/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ask-how to update files with the same name aaronuq Linux - Newbie 3 05-29-2014 11:05 PM
[SOLVED] to update, or not to update? that is my question... ricky.smitts Linux - Newbie 7 07-18-2011 09:19 PM
basic html question - download link to files on my webpage question Davno Linux - Server 5 12-25-2009 07:24 AM
Files update in /etc onlynimal Linux - Security 4 08-29-2007 02:50 AM
Shell programming: Question about source files and read data from the files ccwq Programming 3 08-05-2007 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration