You are not logged in.

#1 2005-12-14 02:06:41

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Copy New Files to different locations

Hello, I'd like duplicates of directories on computer a and computer b. And then I also want computer b to send backups of my files to a portable hard drive (change and modified files)

Computer A + B Structors and Files Same
Portable Hard Drive - New / Modified Songs

Thanks - MSG43


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#2 2005-12-14 02:15:48

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Copy New Files to different locations

rsync or scp maybe?

Offline

#3 2005-12-14 02:33:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Copy New Files to different locations

I'm not sure how you would do it, but this might be an interesting application of a version control system.  You could have an svn repository on the portable drive somehow, and have the computers use svn commit to write updates to the drives....

Guess that wouldn't work because you'd have to use svn update to sync back from the drive to the computers if you change something on one of the computers..... hmmm.....

ok, maybe darcs would work, because its a distributed version control system.... would allow you to sync a repo between the two computers and also to sync to the hard drive.  Yeah, I like this idea....

ok, enough thinking out loud on my behalf.

Dusty

Offline

#4 2005-12-14 03:04:38

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Copy New Files to different locations

Penguin wrote:

rsync or scp maybe?

How'd I use scp or rsync in what ways would it work.

I have my desktop with my music, which I want to be sync with my server which I want backed from one of the computers on to the portable drive. Probably the server cause I want to also backup my server files on the external HD


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#5 2005-12-14 05:10:52

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Copy New Files to different locations

I use rsync to sync my university workstation to my laptop at home:

rsync -razv -O --stats --progress --delete username@host:$HOME orion/

It copies my remote home folder to the orion folder.
To sync my laptop to an external USB HD:

rsync -razv -O --stats --progress --delete  $HOME  .

Read rsync man pages to get the details about the options.

Offline

#6 2005-12-14 11:15:52

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Copy New Files to different locations

Snowman wrote:

I use rsync to sync my university workstation to my laptop at home:

rsync -razv -O --stats --progress --delete username@host:$HOME orion/

It copies my remote home folder to the orion folder.
To sync my laptop to an external USB HD:

rsync -razv -O --stats --progress --delete  $HOME  .

Read rsync man pages to get the details about the options.

Thanks, do I need to setup a rysnc server? I'm don' thave time to look b/c I have to go to school in a few minutes.


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#7 2005-12-14 16:08:23

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Copy New Files to different locations

You don't need to setup a rsync server. At least, I didn't. I don't know what use a rsync server would have. If you're worried about forgetting to backup, you could setup cron to do it.

Offline

#8 2005-12-14 22:03:30

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Copy New Files to different locations

^^
Ok thanks snowman like I said I had to go to school I'll try it out in a bit.


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#9 2005-12-15 03:29:01

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Copy New Files to different locations

rsync -razv -O --stats --progress --delete matthew@100.110.0.100:/home/music test/
can't figure whats wrong with that hmm...


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#10 2005-12-15 03:50:54

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Copy New Files to different locations

Does the test folder exist?

EDIT: To use the username@host format, you need a working ssh(or maybe ftp)  server on the host.

Offline

#11 2005-12-15 03:52:28

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Copy New Files to different locations

yes on the localmachine


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

Board footer

Powered by FluxBB