Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 03-16-2009, 09:25 PM   #1
Jk
In Runtime
 
Jk's Avatar
 
Join Date: Jan 2006
Posts: 236
Default Backup files from my computer to home server?

What would be the best means of backing up my music collection (from my pc) onto my server? I googled and found a bunch of windows tutorials and a linux one but it would erase the folder and rebuild it (that would take too long to backup). I want my server to check my music folder and look for new files. If there are new files then it will update, if there aren't then it will do nothing.

My lamp server is running xubuntu 8.04, a 500gb sata hd, and it is also set up for FTP if that helps any. The computer it will be copying files from is running kubuntu 8.04.

Thanks in advance.
__________________

__________________
Evga 680i SLI Mobo | C2d 6420 @ 3.2 | 2gb RAM | 9800gtx | Corsair 750w | Pioneer DVD Writer | 330gb | Antec 300
Ubuntu 9.04 | Windows 7

I miss my opty :c
Jk is offline   Reply With Quote
Old 03-16-2009, 09:43 PM   #2
In Runtime
 
Daeva's Avatar
 
Join Date: Dec 2005
Posts: 407
Send a message via AIM to Daeva Send a message via MSN to Daeva Send a message via Yahoo to Daeva
Default Re: Backup files from my computer to home server?

I have done this before a lot on windows. But a buddy of mine directed me towards this article. It seems to get the job done with some minor tweaking.
http://www.reallylinux.com/docs/autoftp.shtml
Hope that helps.
__________________

__________________
**Official Self-proclaimed glorified excessive (insert additional adjectives here) post editor/modifier.
Edit = Best feature ever
http://www.twitter.com/xDaevax
Daeva is offline   Reply With Quote
Old 03-17-2009, 12:22 AM   #3
Jk
In Runtime
 
Jk's Avatar
 
Join Date: Jan 2006
Posts: 236
Default Re: Backup files from my computer to home server?

ok, I think I have the basic idea of how that works. Only one problem it won't connect when I put it in a script. Here is what my two files look like.

ftpstartup
Code:
#!/bin/sh
ftp < autoftp
autoftp
Code:
open server
user
password
binary
cd /files/music/
mput /Artists /Instrumentals
bye
When it gets to "open server" it gives me
Code:
: Unknown host
But I can get in a terminal and type "ftp" and "open server" and it will prompt me for my username and password. Do I have to type it differently when I put it in a script?
__________________
Evga 680i SLI Mobo | C2d 6420 @ 3.2 | 2gb RAM | 9800gtx | Corsair 750w | Pioneer DVD Writer | 330gb | Antec 300
Ubuntu 9.04 | Windows 7

I miss my opty :c
Jk is offline   Reply With Quote
Old 03-17-2009, 07:55 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: Backup files from my computer to home server?

The best way I can think of is this...

First copy all the files to the server using FTP, so you know that the copy on the server is fully up to date.

then write a batch script,
the batch script needs to copy all recently added or modified files, (there is a switch to do this) to a temporary file. then you need to copy the temporary file to the FTP server, (again can be done inside the same batch file), after that delete the temp folder on your local machine. and that's all there is to it.

the hardest part is getting a reliable backup on the server.

It is possible that you can get something that will log into the server look at what is there compare that to what's on your local machine and then only copy the things that you haven't got. but I don't think thi sis as good as the method above. for the simple reason that it's only going to look at the file names. if you've modified the files, (like updated the ID3 tags) then they won't be copied, because the file will already exist on the server even though it's a different file.

the first way I said will copy the new file to the server since the modified date will have changed.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0