LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2010, 10:40 PM   #1
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Rep: Reputation: 17
Backup Solution


Hello all!

I have a rather picky requirement here. This is what I have:

Because MagicJack has no linux support, I have sunk to dedicating one of my servers to windows XP for that purpose (UGGHHHH). However, thats a waste of 2 terabytes. I set up an FTP server on it so I could use it as a file backup location for lack of anything else to use windows for.

I want to:
Backup /home to a in-home ftp server each time the computer is turned on. However, this is where I get stuck.

fwbackups: Requires SSH or SFTP. I dont care about security as this connection is only available in network anyways. There is no external access to the Backup server, and SSHd is a pain in the ASS on windows.

simple backup: Requires you to compress the backup file. I dont want this. I want straight tree backup.

Others: Too difficult to fuck with for such a simple solution.

I think I need to point to a shell script in rc.local, but I want other opinions first. Any ideas?
 
Old 02-11-2010, 10:43 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Use CIFS or NFS instead of FTP if you are in-house, it will be much easier. With both NFS, FTP and CIFS, you can mount them as folder at boot using fstab, it will make your task easier.
 
Old 02-11-2010, 10:47 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by LazerPhreak View Post
Because MagicJack has no linux support, I have sunk to dedicating one of my servers to windows XP for that purpose (UGGHHHH). However, thats a waste of 2 terabytes. I set up an FTP server on it so I could use it as a file backup location for lack of anything else to use windows for.
Don't waste a whole machine with windows. Instead install linux on it and then run windows in a virtual machine.

Then you can also use this machine for running backups using whatever linux based backup system you like.

Cheers,

Evo2.
 
Old 02-11-2010, 10:49 PM   #4
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Original Poster
Rep: Reputation: 17
OK, thanks! but how would I mount a NFS filesystem via terminal?
 
Old 02-11-2010, 10:54 PM   #5
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Original Poster
Rep: Reputation: 17
Sorry bout that, blonde moment lol. actually more of a rtfm moment....thanks!
 
Old 02-11-2010, 11:03 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I believe its MS-SFU
 
Old 02-11-2010, 11:15 PM   #7
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Original Poster
Rep: Reputation: 17
OK, so now I really am stuck. How do I go about setting this up?

These are what I want the script to do.

1) mount C:\FTP\backup Drive on 192.168.1.135 to /mnt/backups

2) copy all files (replacing files as needed, to keep most recent version) to /mnt/backups

Such a simple script, but I'm getting mounting errors, so I need help with the nfs configuration.
Thanks!
 
Old 02-11-2010, 11:17 PM   #8
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by evo2 View Post
Don't waste a whole machine with windows. Instead install linux on it and then run windows in a virtual machine.

Then you can also use this machine for running backups using whatever linux based backup system you like.

Cheers,

Evo2.
Find a way for MagicJack to work on a VirtualBox and you will be my hero. Look into it, it's virtually impossible, and the few that have succeeded have the most horrible sound quality. I, myself, put 3 weeks of effort into it.
 
Old 02-11-2010, 11:47 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by LazerPhreak View Post
Find a way for MagicJack to work on a VirtualBox and you will be my hero. Look into it, it's virtually impossible, and the few that have succeeded have the most horrible sound quality. I, myself, put 3 weeks of effort into it.
Ouch, three weeks. Too bad.

Cheers,

Evo2.
 
Old 02-12-2010, 12:33 AM   #10
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Original Poster
Rep: Reputation: 17
lol not sure if that was sarcastic but thanks? heres what I did to solve this need:

1) Setup full file sharing on C:\FTP
2) Created this simple script called backup in /usr/bin:
Code:
#!/bin/bash
sudo smbmount //192.168.1.135/c/ftp/backup /mnt/backup -o username=backup,password=ASH46DGHJ,uid=1000,mask=000
cp -rv /home/Documents /mnt/backup/home/kasha/
cp -rv /home/Downloads  /mnt/backup/home/kasha/
cp -rv /home/LimeWire  /mnt/backup/home/kasha/
cp -rv /home/Pictures  /mnt/backup/home/kasha/
cp -rv /home/Videos /mnt/backup/home/kasha
cp -rvn /home/Music  /mnt/backup/

cp -rv /etc /mnt/backup
cp -rv /usr/src /mnt/backup
and this one called backupD in /usr/bin:
Code:
#!/bin/bash
sudo smbmount //192.168.1.135/c/ftp/backup /mnt/backup -o username=backup,password=ASH46DGHJ,uid=1000,mask=000
cp -rv /home/Documents /mnt/backup/home/kasha/
cp -rv /home/Downloads  /mnt/backup/home/kasha/
cp -rv /home/LimeWire  /mnt/backup/home/kasha/
cp -rv /home/Pictures  /mnt/backup/home/kasha/
cp -rv /home/Videos /mnt/backup/home/kasha
cp -rvn /home/Music  /mnt/backup/
then ran:
Code:
sudo chmod +x /usr/bin/backup
sudo chmod +x /usr/bin/backupD
sudo chmod 755 /usr/bin/backup
sudo chmod 755 /usr/bin/backupD
Then I installed gnome-schedule
Code:
sudo aptitude install gnome-schedule
Then in gnome-schedule I set tasks for once a month for backup and once a day for backupD

Voilah! Simple, unsecure (inside the network) file backup lol
 
Old 02-13-2010, 03:35 PM   #11
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Better late than never

to mlunt a CIFS share:
mount -t cifs //IP/shareName /mnt/mountPoint -o username=foo,password=bar

in fstab:

//IP/shareName /mnt/mountPoint cifs default,username=foo,password=bar 0 0
 
  


Reply

Tags
backup, file



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
Help with backup solution pitt30 Slackware 14 08-06-2009 02:35 PM
backup solution matrolinux Linux - Enterprise 10 12-28-2007 08:08 AM
Backup Solution Hexane Linux - General 6 01-23-2005 04:26 AM
I need the best backup solution dtournas Linux - Software 1 10-16-2004 06:11 AM
Backup solution NSKL Linux - General 4 11-29-2002 06:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:49 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