LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-10-2008, 10:12 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,185

Rep: Reputation: 47
backup directories to move from Slack 12 to Slack 12.1


I want to backup some directories holding mp3 files from my first pc running Slack 12 to an external backup drive to transfer them to another pc running Slack 12.1. All of these directories to be copied already exist on my backup drive but some of these have changed. I want to replace the changed directories on my first pc to my backup drive. How could this be done with a script?
 
Old 11-10-2008, 10:33 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630
The easy way would be to just use rsync to get everything up to date (see `man rsync`). That isn't exactly what you asked, but it basically accomplishes the same thing. Depending on the options you pass, it will copy over any new files that are not on your backup drive and will overwrite any updated files (based on the filesize or modification time). If you're worried about keeping the originals, rsync can also copy over the new, updated files while renaming the old files to prevent them from being overwritten (see the -b, ie --backup option). If you have files on your backup drive that are no longer present on your PC that you don't want deleted, make sure to NOT use the --delete option, which would delete any files on the backup drive that are not on the PC.

Last edited by T3slider; 11-10-2008 at 10:36 PM.
 
  


Reply


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
What is with all the Slack directories in the mirrors? Biggen Slackware 6 04-12-2007 12:30 AM
Move Slack to Another Partition AxXium Slackware 8 08-21-2005 08:40 AM
proFTPd on slack 10: Can't see other directories! rsumbeling Linux - Networking 1 11-16-2004 03:47 PM
Thinkpad R51, Slack 9.1, how to move forward? slackist Linux - Laptop and Netbook 1 10-05-2004 07:36 PM
I made the move from mandrake to slack...but one problem... spade Slackware - Installation 3 03-16-2004 08:32 AM


All times are GMT -5. The time now is 07:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration