Server :: Automating A Restore With Backuppc?
Jan 28, 2011
here is the thing. I've deployed BackupPC in a server at work, and everything is working fine. Now, what I need to do this thing. I have a remote server with a website and a postgres db running. I've been able to set up everything to be backed up using rsync. But I would like to make the same process to restore the backup immediately in a local server trough rsync, that has to be ready just in case of failure of the remote server. What I've tried to do is to run the DumpPostUserCmd, so whenever a dump is performed in the remote server, I can have my local server updated. What I've find out is that when you perform a restore through the web interface, the command that performs it is (using ps ax in the backuppc server):
/usr/bin/ssh -q -x -l root myserver.wheretodotherestore.mydomain /usr/bin/rsync --server --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --relative --ignore-times --recursive . /path/to/restore
So, what I could find out is: /usr/bin/rsync is the command that the process runs in the server where I want to put the restore. Then the options, and finally, source and destination of the restoration. But, as you can see, the source is '.' but I cannot guess where to point that!
View 2 Replies
ADVERTISEMENT
May 4, 2010
I am trying to get going BackupPC on a fedora 12 64 bit machine as the server. I have got Apache running asn can see the test page. I can log on to the BackupPC web page at http://127.0.0.1/BackupPC. but that is about as far as it goes. The web page does not have anything on it that I can configure, or get any useful information on. There are a number of menu item missing Admin options, LOG file. Old Logs, Email summary, Config file, Host file, Current queues are all missing.
This according to the articel I have showing a BackupPC web page sceen. I have edited the /etc/hosts file to include the localhost and the backupserver IP address. I have also added these to the /etc/BackupPc/hosts file. The web page that is displayed not only has the missing menu items but the colour of th highlighted menu item is blue not green as in the typical pictures I have.
I have tried to use the article Back Up linux and Windows systems with backupPC from howtoforge as the basis. As I indicated I can get teh web page up but can not do anything. Clearly I have missed something.
Can anyone assist me to get this going. Is there a definative article somewhere that sets up BackupPC on Fedora 12?
View 4 Replies
View Related
Feb 20, 2010
I now have BackupPC up and running on ubuntu 9.10.I have a couple more issues. These relate to the fact that I am trying to use backuppc to backup files, but also to provide a central up to date store of network accessible files, so, for example, media files can be viewed over the network, rather than downloaded through the web interface. Thus I have the following problems:
1. Access the files through the network.I want to have /var/lib/backuppc as a browsable folder through the network. I have managed to change permissions on the folders so they are browseable, but i need to set the file permissions so i can open the files. How do I do this, and set it so that all future backup files are given accessible permissions?
2. A single store of files.I want one folder with all the incremental backups being copied into it, so to see the most up to date version of a file, I just browse to it in nautilus, or through shared folders from another pc on the network.At the moment, I have a 0 and a 1 folder, and I am sure I will end up with loads more. I just want a single folder, no matter how many times the backup is made.
3. Change the Naming Convention.Also is there a way to change the naming convention so the folders are given the normal names (so Documents rather than fDocuments)?
View 2 Replies
View Related
Sep 1, 2010
Apache/2.2.3
CentOS release 5.4 (Final)
BackupPC-3.1.0-6.el5
So im setting up backuppc but do not want Apache to run as the backuppc user. To get round this I need to setup suEXEC so that CGI scripts are ran as the backuppc user. This seems fine and I do have the module loaded,
1. I have configured my config files as said here
2. I have read that DOC_ROOT for suEXEC is set to /var/www I need to change this to /home/www - as a quick fix i have a symbolic link from /var/www to /home/www.
3. To confirm what DOC_ROOT is and check where the log file will be as suggested on many sites I run "/usr/sbin/suexec -V" but I get nothing back, it does not list any config.
4. Group and Owner for "/usr/share/BackupPC" is backuppc
[Code]...
View 1 Replies
View Related
Jul 29, 2011
i`m trying to set up a Central Backup Server with BackupPC installed on CentOS 5.6 x86_64, My CentOS has Samba3x / Winbind integrated with Active Directory i found this nice Wiki http://wiki.centos.org/HowTos/BackupPC , to get my BackupPC installed. after installing RPMForge's repo and settin` up the priorities to the repos, http://wiki.centos.org/PackageManagement/Yum/Priorities i get the following error regarding Samba3x Conflicts , i dont wanna miss up my Samba Configuration to install BackupPC, even --skip-broken option does not work for me
[Code]....
View 2 Replies
View Related
Apr 6, 2010
Basically, I go through certain logs on my linux hosts checking for anything out of place. You know, the usual, /var/log/messages, lastlog, etc. What I've been using is just a simplistic grep statement that looks for keywords in certain log files, such as warn, crit, etc., with the -i flag to ensure no case searches. I thought, well, surely there are others out there doing the same thing, but more automated. Perhaps something that can check files for keywords and then notify, via email, if anything out of the ordinary is seen.
View 5 Replies
View Related
Aug 5, 2010
The question that I am posting here is quite interesting as it was asked in the interview I attended today. And, honestly, I could not provide a solution. Ok, here goes the problem statement:Design a Web Interface that has three text fields:
IP Address:
Subnet Mask:
Default Gateway:
And a button:
When we click the Submit button, the two entries must be set in the concerned files and then the network service must be restarted to bring the new IP Address, Subnet Mask, and Default Gateway in effect.As we all know that these settings can be done by the root user or a user who has those priveleges.The complete web interface needs to be done only in PHP. Some Shell Script can be used if required.
View 1 Replies
View Related
Oct 5, 2010
Here's the setup: One x86 server (Red Hat 4) with two serial connections to an embedded linux device. One serial connection is to a power control so the device can the restarted, and the other is used for a console to this device. Both serial connections use minicom. People on my team VNC to the x86 server, where they find the two minicom sessions waiting for them as they are left open. I would like to automate connecting to the server and communicating over the serial lines.
Supposing I use ssh to the x86 server, could minicom be used over the serial lines without terminating the minicom processes seen through VNC? If not, is there a way to re-open those windows from within the ssh session, so a user who VNCs to the server won't have to reopen them? Could a single ssh connection control two minicom terminals simultaneously, or would there need to be two ssh connections? It is assumed a user and the automated process will *not* try to access the device at the same time; the automation would trigger during off hours.
View 2 Replies
View Related
Jan 27, 2010
what could this bei saved my correct iptables file @ Code: /etc/iptables.up.ruleswhere webmin is looking for it.webmin config is to automaticly boot this file and addes a line at.
Code:
/etc/network/interfaces
file
[code]...
View 4 Replies
View Related
Oct 28, 2010
I have been struggling to get backuppc running and finally today figured out what I was doing wrong. Backuppc is running on my Ubuntu 10.04 server. I have it backing up my mac, but I can 't get it work on my Ubuntu 10.04 desktop. I followed the same steps I used in getting it to work in my mac, so I can't really see why there is a discrepancy. This is the error log I'm getting now:
Code:
full backup started for directory /
Running: /usr/bin/ssh -q -x -l root 192.168.1.120 /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /
Xfer PIDs are now 14404
Read EOF: Connection reset by peer
Tried again: got 0 bytes
Done: 0 files, 0 bytes
Got fatal error during xfer (Unable to read 4 bytes) Backup aborted (Unable to read 4 bytes) Not saving this as a partial backup since it has fewer files than the prior one (got 0 and 0 files versus 0) The dreaded 4 bytes error. I was getting that problem before on my mac, but from what I've managed to find, this error usually shows up when you don't have ssh keys set up properly. Once I got that figured out, it started working on my mac. I can confirm that that part is set up because when I execute the following as the backuppc user on the server:
[Code]...
View 3 Replies
View Related
Apr 5, 2011
BackupPC usually just works. It backs up the localhost and another PC, both running Debian Unstable. However it stopped backing up the remote machine after the 22nd March.This correlates with updating OpenSSH.All I get is "Unable to read 4 bytes from Server".As suggested on the backupPC website I ranCode:sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -v -f backupclientI was asked for the sudo password and then for a password for each directory that was to be backed up.The backuppc password was not accepted. The root password was.Could somebody point me towards a solution? Do I have to recreate the SSH keys?
View 2 Replies
View Related
Aug 17, 2011
I installed Apache en BackupPC but could not connect with http://localhost/BackupPC. what is the procedure for connecting BackupPC with the browser.
View 3 Replies
View Related
Feb 20, 2010
I'm trying to setup backuppc to access using apache. I followed this guide: [URL]. Apache2 is correctly running on my pc. I used this command: htpasswd /etc/backuppc/htpasswd user and, as the guide says, I tried to access http://localhost/backuppc but I get nothing there. Is anything else I should do to access backuppc?
View 1 Replies
View Related
Jan 5, 2010
In a moment of temporary insanity I tried to install Backuppc using the synaptic package manager, but started to panic when the installer tried to set up an Apache web server on my PC (which I do not want). At that point I tried to cancel the installation, but got an error message. I then marked the package for complete removal in the package manager, but every time I click the apply I get an error message, "E: backuppc: subprocess pre-removal script returned error exit status 2" and the package, which did not install correctly in the first place, refuses to go. When I ran the update manager today, to install the latest updates, the manager tried to continue with the Apache installation stage of the Backuppc installation. How do I get rid of it?
View 2 Replies
View Related
Jun 28, 2010
"E: backuppc: subprocess installed post-installation script returned error exit status 1"whenever I upgrade my system I get the above message Anyone know how to fix it? or if it's anything important ?
View 1 Replies
View Related
Dec 9, 2010
I use Evolution Mail Client everyday on my fedora machine. It has become indispensable somewhat. I am wondering if Evolution can be made to run in the background without the GUI, so it can check mails (IMAP/POP) and post delivery reminders through notify-send. I don't mean evolution-notify-alarm ... I know evolution-notify-alarm runs like that but I think that is limited to calender events and tasks (using data mostly stored locally)
I find that I get notified via notify-send interface only when Evolution GUI is on or minimized. Is there a way to get a real background version of this activity - the GUI can then appear when the Panel Icon is clicked
View 4 Replies
View Related
Jul 29, 2010
For a certain task, everytime I have to open 10 bash terminals and write different commands on them. Any way to automate this? I am running Fedora linux.
View 2 Replies
View Related
Feb 22, 2011
I am having problems gaining access to the BackupPC admin web page. The error:
Quote:
[Tue Feb 22 16:43:59 2011] [error] [client 192.168.0.2] (13)Permission denied: Could not open password file: /etc/BackupPC/htpasswd [Tue Feb 22 16:43:59 2011] [error] [client 82.30.227.113] access to /backuppc failed, reason: verification of user id 'myhtaccessuser' not configured
Why is this occuring, is there anyway of getting around this? I just cant remember originally on my old system how I set this up.
View 3 Replies
View Related
Mar 10, 2011
I need to ask a question on many forums/mailing lists.In such a situation I need to open browser and login to many forums at the same time.Then go and format it according to forum guidelines and then paste it.So I want to know if I can automate this process some way by some alias or command line utility and just type the question in a text file and give URLs on command line and the question gets posted to those forums where I request?
View 7 Replies
View Related
Jun 18, 2010
My system is F13 (upgraded from F11) with all of the latest patches available. I haven't gone through and combined all of the rpmnew configuration files, but none of them seem to address networking.I'm trying to get subinterfaces (secondary IP addresses) to work in Fedora 13. So far, I have been able to configure them on the command line, but not to get them to persist on booting.My base address for the NIC is: A.B.C.254. It is statically assigned.
View 5 Replies
View Related
Feb 10, 2010
I want a tool, which can record my actions on the gnome desktop and play it again. I must be able to edit the recorded script.
View 3 Replies
View Related
Feb 19, 2010
I am trying to set up clonezilla on pxe so that it will start up and show the drones in the workplace a list of images, they choose the one named after the model of computer, and image it. Which means all clonezilla settings but image need to be set and it should automatically choose default settings at 1024x768 when grub pops up. I have looked for command-line options, scripts to run, etc... so far this is what I have...
Code:
#!/bin/bash
. /opt/drbl/sbin/drbl-conf-functions
. /opt/drbl/sbin/ocs-functions
. /etc/ocs/ocs-live.conf
ocs_live_run=`ocs-live-restore`
ocs_live_extra_param=`-p reboot -r hda`
ocs_live_keymap=`NONE`
ocs_live_batch="no"
ocs_lang="en_US.UTF-8"
ocs_daemonon=`samba`
I don't need the bash for selecting the image, but you might as well add that seeing as there's almost no info online for people who want a pxe server...
View 2 Replies
View Related
Jan 25, 2011
I am running NIS in an environment that has HP-UX 11.11 64-bit running on a PA-RISC rp3400 server, with Fedora Core 2 32-bit running on intel workstations. All users use the tcsh shell by default in their profiles. If more information is needed please let me know.
Users who log into the domain via a terminal window on the workstations are prompted for the terminal type which is normally dtterm. I want to automate the process so users are not prompted to enter in the above information. My plan is to modify the global-cshrc file on the master NIS server. I had several questions concerning this:
1. Is it better to modify global-cshrc, or should this be done at the individual user directory?
2. What is the correct syntax to use in either case?
3. Will the changes made go into effect upon the next login, or do I need to push out the changes via the make command?
View 2 Replies
View Related
Jan 10, 2011
I am a student at DeVry University, newly introduced to Fedora and Linux in general, and have a project whereby, we have been asked to consider some administrative tasks that we could automate via a script.I was wondering if there were any thoughts or directives from the community on what admin tasks you guys find to be of inestimable use in automating via a Linux script.
I am new to the Linux commands but have done a wee bit of programming before in C++ and others.I have also done basic DOS batch files before.
View 5 Replies
View Related
Jul 13, 2010
I wrote a script ages ago to automate an FTP transfer. This was easy as within the script you can specify the password with password <whatever>. Now I am wanting to do a similar thing with SFTP (SSH). I know that SFTP works differently and I cannot specify the password within the script - what do I need to do on the server I am connecting to to either "trust" the host I am connecting from or to somehow specify the password for "sftp user@some_host"? It's IP address will always be the same.
View 4 Replies
View Related
Aug 11, 2009
I am developing an application which communicates with a bluetooth device.I do not want the user to pair or unpair the device using the Bluetooth applet or command line, but I want to automate the pairing process through my application. The application will scan and find the bluetooth devices in the proximity of the computer, and automatically pair the required device without any user input.Where should I look for the relevant APIs?
View 1 Replies
View Related
Mar 31, 2011
Need help in doing a tedious thing and no idea how to achieve this. The thing I am after is Makefile which generates after ./configure script runs successfully. Now the thing is when we run the `configure` script it may get stuck because of lots of reasons like needs mandatory options to pass with configure, library/header file is missing, etc. So I want to automate this problems as far as I can. As I am not installing the package so apt-get/yum won't hold here for me. So what should be your suggestions on achieving this. Should I study the configure script and the sample Makefile's inside the package
View 4 Replies
View Related
Jul 19, 2010
I have set up a MySQL database which has only three fields for user-name, password and index number. But there is a LOT of data (thousands of columns) which would take too long to enter manually. I'm sure MySQL must have a file format whereby a single large file containing different data types can be successfully automatically imported and the various data elements distributed to their intended fields. Does anyone know which characters MySQL uses as field seperators for this formatting of data, or is there a program already written which can take raw data and organize it into a SQL compatible file?
View 8 Replies
View Related
May 1, 2011
I just setup sendmail on my server to send emails and it works, now I would like to be able to get an email from mdadm if sometjhing was going wrong. I imagine most raid users have this feature setup.
Right now, I have 7 raid arrays and mdadm starts at boot time. Until now, I used Mr. Goblin's script (http://connie.slackware.com/~mrgoblin/files/rc.mdadm) (thanks Mr Goblin!) to monitor my arrays.
The script is started at boot time from rc.local. I created a small script in /usr/bin that send the following command to rc.mdadm giving me the status of the arrays:
Code:
/etc/rc.d/rc.mdadm status
and it works fine, but this requires me probing the arrays manually by calling the script from the command line. I would like to automate probing every 10 minutes or whatever and if a fault has been detected, I get an email.
[Code]...
View 14 Replies
View Related
Feb 3, 2010
I have a spreadsheet which I update regularly. This involves downloading CSV files from a couple of websites, copying data from those files into an OO.org spreadsheet and copying formulas within the spreadsheet (the number of rows of data varies, so when the number of rows of data increases, I need to copy more lines of formulas).
I'd like to automate this process, so that with a single command I can get the data from the websites and feed it into my spreadsheet without having to copy rows of formulas. Although I've done lots of numerically-oriented programming, I have no idea how to undertake this automation task. I don't even know which tools I need to learn to do it.
View 3 Replies
View Related