Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-03-2014, 03:31 PM   #1
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.

Old 06-03-2014, 05:21 PM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-30-2014 12:05 AM
[SOLVED] to update, or not to update? that is my question... ricky.smitts Linux - Newbie 7 07-18-2011 10:19 PM
basic html question - download link to files on my webpage question Davno Linux - Server 5 12-25-2009 08:24 AM
Files update in /etc onlynimal Linux - Security 4 08-29-2007 03:50 AM
Shell programming: Question about source files and read data from the files ccwq Programming 3 08-05-2007 01:13 AM

All times are GMT -5. The time now is 10:47 PM.

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