Ubuntu :: Rsnapshot - Automated Data Backup Of Remote File System
Aug 28, 2010
Rsnapshot is a software written in Perl to make backup of local and remote file system. The well proven rsync is behind this utility. rsnapshot does not need root user intervention to restore the data of a normal user. It does not take much space in your Backup server. It can be easily automated (scheduled) to make life easier. Just setup once and forget it configuration. Basically it takes snapshot of file system (or a part of) in regular interval such as hourly, daily, weekly and monthly.
This can be configured easily through a simple text based configuration file. The above task can be setup in a few easy steps in a few minutes. Two major tasks are configuring rsnapshot and openssh automatic login. To make the backup automatically, we need to automate the remote login in a secured way. This can be done through openssh tools. This scenario depicts backup of desktop (assuming that IP address is 192.168.0.100) data to a backup server. My desktop runs on Ubuntu 10.04 and backup server runs on Debian Squeeze. [URL]
View 2 Replies
ADVERTISEMENT
May 25, 2010
I have a machine on my network and that machine is a mass storage server that I will eventually use as a media server (to stream movies, videoclips and music on my home theater system). I use slackware 13 on ALL of my machines.
I am trying to automate the backup of the "/home" folder of my laptop onto the mass storage server. I currently use rsnapshot and it works great, but I would like to automate the whole process, even if I am not home or in front of my machines...
Here's what I imagined (in pseudo code):
1) Poll if server is active (up);
1.1) If not:
1.1.1) Wake up the server (WOL);
1.1.2) Wait for the server to boot;
1.1.3) Confirm the server has made it to the login prompt (normal boot);
1.1.3.1) If not, send an alarm via email;
[Code].....
View 14 Replies
View Related
Apr 17, 2010
What's the current best practice for automounting a remote drive for automated backup? I want to use Back in Time and maintain snapshots but it can't do that remotely so I have to mount a folder outside of Back in Time. I have used sshfs from this howto in the past and it works mostly but seems to lose connection and not reconnect a lot. [URL]. Is there a more "modern" way? NFS is horribly unreliable and dog slow for me so it's OUT unless it's changed in the last year.
View 1 Replies
View Related
Sep 13, 2010
Can some one give me a sample of a crontab for backing a directory please, System is Ubuntu 9.04Quote:
#!/bin/bash
# this file is an automated backup script, backup.sh.
# this backs up my domain site.
[code]....
View 7 Replies
View Related
Mar 24, 2010
I am looking for an automated backup system and I like bacula. I have 3 Notebooks and a Desktop computer that need regular backup. Now I don't want to let them run all night just to do the backuping, so I was thinking I could use wake-on-lan to have bacula wake up the machines, then do the backups, and shut them down afterswards. While this may work with devices on the ethernet, it won't work with the Notebooks on the wifi. So is it possible to have the Notebooks schedules to automatically wake up from suspend or shutdown ? Or is it possible to interject a shutdown command if it is after a cerain hour and call the bacula director to start the backup now?
View 2 Replies
View Related
Jun 26, 2010
Attempting to create a backup script to copy files from one file system to a remote file system.
When I try this I get:
Quote:
# tar -cf - /mnt/raid_md1 | gzip -c | ssh -i ~/.ssh/key -l user@192.168.1.1 "cat > /mnt/backup/fileserver.md1.tar.gz"
tar: Removing leading `/' from member names
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh: Could not resolve hostname cat > /mnt/backup/fileserver.md1.tar.gz: Name or service not known
[Code].....
I know that the remote file system dir is RW and the access is working fine. I am stumped...
View 3 Replies
View Related
Jan 31, 2010
How to backup incremental running debian server using rsnapshot?
View 2 Replies
View Related
Apr 24, 2010
I have installed rsnapshot from slackbuilds.How to run it to backup home directory?I'm also reading the official docs.
View 3 Replies
View Related
Feb 15, 2011
I already have an ubuntu backup server in my location and need this one server to be backed up remotely in another state. this other location is a helpdesk so there's a danger that they can gain access to confidential data. I'll be setting up this new server as an ftp server but need to set the ftp folder to only allow access to the backup server and me. Because its remote on the helpdesk side, they'll need some access to the file system but need to be completely blocked off from the ftp folder where all the data is at. How can I make sure I can keep them away from my data and still be able to retrieve or copy files over without permission issues between both servers?
View 9 Replies
View Related
Sep 2, 2009
how to backup both the system and the data from my Red Hat Server to a share on a windows SBS server where the regular network backup will take it off-site every night. The Red Hat Server is basically a web server on the LAN using RAID 1 to ensure some redundancy in the discs and is used as an internal web server for an administration system.
The Windows SBS server is the domain controller and rest of the network is totally windows based. The SBS server has large discs which host all of the general data to be backed up and is controlled by a 3rd party IT company. We have a share created on the SBS Server which is to backup all of the information from the Red Hat box to ensure we can potentially restore the system quickly in case of a major problem.
The thorn here is that I am working on a different site to the Red Hat Box and have to do everything over SSH. the Red Hat server has Samba running but I have not used it to mount an external windows share? Is there an 'out of the box' backup software on the Red Hat server that I can control over ssh to do the job? The biggest worry for me is the backing up the system to a state where it can be popped on a disc and the system restored from the backup - or most of it anyway - enough to get the server back on its legs.
View 2 Replies
View Related
May 12, 2011
I installed a fresh version of squeeze, with kde, and it worked fine. After I untarred my backup /home and /etc, things came to a standstill. I got a final ERROR code after /home. After a restart I got a 'fix your system' warning requiring a Control-D, which I couldn't type. I had used tar -xzvpPf ...... If I had included a -w, which asks for confirmation before overwriting data, could I have prevented this problem.
View 1 Replies
View Related
May 26, 2011
I have created an automated backup using the following:
[Code]...
When cron runs it creates a .tar like it is suppose to, but it creates archive-.tar. However, when I manually type in that command, I get archive-"whateverthedateis". Is there a step that I missed since the date keeps being omitted by this cronjob. I tried a another method
[Code]...
View 3 Replies
View Related
Sep 27, 2010
This is my first post and I am a linux newbie.. took on the challenge of setting up an ubuntu server with proxy and firewall with vpn access as well.. sounds good? While messing with things, I installed ebox server, know called Zentyal and perform backups, however, when performing a full restore, following instructions and all it does not restore correctly. I ran many attempts with verious configurations and still allways got some errors, such as eboc-ebackup failing to start, etc. most noteably wa sthe ldap error, which i figured out how to fix by restarting once logged into and then rebooting.
I say the Clonezilla options for a full backup, and it sounds great, but does require me to perform a full abckup, while bring the server down to perform. What I wanted to know, was what do you recommend for performing a full backup (possibly to NTFS partition or USB key with FAT32) with automation or even if i had to perform the trigger, just without needing to bring the server down, so when i go into production i dont have any issues backing up anytime?
View 2 Replies
View Related
Nov 21, 2010
I am trying to run rsnapshot from cron via root's crontab file (crontab -e). If I run rsnapshot from the command line with sudo it works perfectly, however, if I run it from cron:
Code:
* * * * * /usr/bin/rsnapshot hourly >/tmp/crontab.out 2>/tmp/crontab.err
This does not work. The crontab.err file shows:
[Code]....
View 2 Replies
View Related
Apr 18, 2010
I want an automated install (via CD or USB) of Ubuntu 10.04 ...on 100 remote machines located all over the country, using a Kickstart configuration file accessible from my web server.
How do I create the boot CD (or USB)?
How do I specifically add the boot parameters to that boot CD (or USB) to tell it the URL to use for it's automated Kickstart install?
View 4 Replies
View Related
Feb 4, 2011
NextPendingConnection () returns a new socket with respect to a new client. This new QSocket is passed to the connect () function which connects it to a SLOT 'xyz' with SIGNAL 'readyRead()'. Now in the SLOT 'xyz' how I am supposed to automate the monitoring of ALL connected sockets to see whether some data is available on them? One pathetic way would be to run all the sockets through a for loop and check each one of them for the data. Secondly, I read up on QSocketNotifier() here: [URL]. But I am not sure if that is the correct thing.
View 3 Replies
View Related
Dec 26, 2009
If I need to append a set (or sets) of data to a file(or files) on remote hosts what is the best mechanism by which to do that? My first thought was ssh but the command syntax to append to a remote file isn't clear to me. Can anyone point me in the right direction here?
View 4 Replies
View Related
Feb 4, 2011
I am now preparing myself to upgrade lenny to squeeze and decided to do a backup on my system. I used backup-manager to do the job and it worked fine. how do you restore said backup data?
View 4 Replies
View Related
Jul 3, 2010
basically want i want to do is copy my whole file system to a different hard drive, then reconfigure my partitions and copy it back. then reconfigure grub.
the reason i want to do this is when on dual boot i gave it only 70gb of space and now i want to add 300 more. and since the 300gb of space is a primary partition and this is a secondary i cant extend them or combine them.
so what i want to do is. sudo cp -rP / /home/me/sshfs-folder
also i have raid 0
View 6 Replies
View Related
May 2, 2011
System76 laptop, 10.04, 320GB HDD, VMware with Win7 in one VM; want to use Clonezilla as am using it to back up (bare metal backup image) another older smaller dual-boot Ubuntu/XP machine. This System76 laptop is a work machine that I control; the Win7 VM only does a couple of things but they're necessary for work and I don't want to lose the configuration. The reason for the bare metal backup is so if I have to, I can restore and get back to work - something I've had to do on some previous occasions back when I used Windows. Data is no problem - I back that up separately on an hourly basis.
My question is what FS to use on the backup drive; for instance, for the dual-boot XP/Linux work machine I'm currently backing up, I'm using a 30GB external HDD formatted in FAT32. That's OK because 30GB is below the limit for FAT32. But for the newer laptop I'll need a much bigger backup partition. I chose FAT32 for the old one because I know everything on the computer being backed up, Windows & Linux both, is compatible with it. But what FS should I use to back up the new laptop, considering that I'll be backing up the Win7 VM as well as the main Linux part of the machine? I plan to use a backup partition of about 160GB. Could I format it NTFS and have it work with Ubuntu 10.04? Or, conversely, if I format it EXT, will it back up the Win7 VM OK?
View 1 Replies
View Related
Apr 13, 2010
O/S: Fedora 12
I am newbie in linux. What I want to do is: Make backup for my file system, cos I learn how to configure servers. So if I made some thing wrong, I want to be able to restore the default setting for my files. Instated of install new O/S.
View 4 Replies
View Related
Aug 29, 2011
I'm setting up a Backup & Media server, which will be running debian. I will setup a small HD or SSD/CF card for the OS, and a MD raid for the data drives.The total size of the raid will be either 3 or 4TB, depending. Now, I need to figure out what filesystem to use on top of this raid.My criteria is as follows:
1. Support for large files. I can't imagine anything larger than about 1.2TB, but the 4GB of, say, fat32 just isn't enough.
2. Robust. I don't want it falling apart on me; nothing too unstable.
3. (and this is most important): Good Undelete support. I got burned recently when a software glitch managed to rm -rf my EXT4 drive. All the file data is still there, but all the metadata is gone. I *DO NOT* want that happening with this. I want to be able to do a "RM / -RF", immediately unmount it, and then recover *all* of the deleted data. Obviously, when data is overwritten it's overwritten, but I don't want to lose all my metadata if a "RM -RF" happens. FAT-32 is the model I'm looking at: You can usually recover deleted files if anything happens to the drive.
So, what are my options?EXT2 looks like a possibility. EX4 is *clear out*, unless there's some nice utility/mode that keeps a backup of all deleted metadata etc.
View 11 Replies
View Related
Jan 28, 2014
I would like to create a full systembackup to a ISO/IMG-file. I've been searching and found mondorescue.org, but something is wrong with package for debian 6.
View 14 Replies
View Related
Apr 23, 2010
What would be the best way to have automated system backups? I'm trying to get it so my Xubuntu box automatically backs up the entire system including user settings on regular intervals, what would be the best way to do it? I have 2 hard drives with one that I do not use that I'd like to backup to.
View 2 Replies
View Related
May 22, 2010
Does the dump command back up entire file-systems or is it capable of backing up subsets of a file-system? And is tar capable of taking device names (for file systems) as input to be archived?
View 1 Replies
View Related
Mar 5, 2010
I am trying to set up an automated installation system for hardware testing and was wondering if anyone on here can point me in the right direction.I would like it to be compatable with a wide range of OS distros including Ubuntu, Red Hat, CentOS, Suse, Windows, Dos, FreeBSD, etc. If some custom scrypting is required thats fine, but flexibility is key.I am looking into Jumstart and Kickstart right now, but I am not sure if that is what I need.
View 1 Replies
View Related
Feb 14, 2010
I am new to XUbuntu and I cant seem to browse my other hard drives connected to my system, It keep saying Connecting to "60 GB Filesystem" failed.Authentication is required.
how do I browse my other hard drives in Xubuntu?
View 1 Replies
View Related
Jun 17, 2011
I have a client that needs 5 machines updated. They are all running Ubuntu 9.04. Long story short, I can only log in over VPN for the time being (as they're in another city).
That said, is there any good way to remotely update the systems without the need to remain logged in (e.g.via SSH)? I'd like to simply kick off the updates and check back in at a later time.
View 6 Replies
View Related
Nov 5, 2010
Is there any software that will do full mirroring between a local and a remote file system. I have a server (9.04) and a laptop (9.10). Each user has shared a shared directory on the server, and on the laptop. Updates to files may be done on either system. I want to keep both copies syncronised. Currently I use a script based on rsync (scheduled by cron) to keep the local and remote copies in sync.
The problem with this approach is that rsync only seems to be able to handle deletion of files if one file system is the master, which is not the case in my set-up. If I move a file to a different directory, rsync will reinstate the old file as well as copying the new one. I was hoping there was some software that could do proper mirroring between the 2 systems, but6 so far I cannot find anything.
View 3 Replies
View Related
Apr 7, 2010
I am trying to get the dd command to successfully copy a disk image to a remote system.Right now I am testing out the syntax by trying to copy the /dev/sda1 directory of the subject computer. The command syntax that I am using is the following:Code:dd if=/dev/sda1 ibs=4096 conv=notrunc,noerror | (ssh 132.183.12.128 of=/roarchive/test obs=4096)The user account running this command is root, and the account does have key-based authentication between the source and destination computers. The command does not return any error messages, but when I check the directory on the destination system, the expected output is not there.
View 7 Replies
View Related