Backup Check
After a little over a week, a quick check of the backup server shows that it's working just fine.
Labels: backup
The trials and tribulations of a Linux newbie trying to setup a home server.
Labels: backup
In Part 6, the full backup of the file server had started. Observant readers may note that the last post was made two days ago. That's because the backup finished after 44 hours! We backed up 143GB with a compression average of 27%.
Labels: backup
Part 5 saw the localhost backup run successfully. Time to move on to the big prize, the file server.
Labels: backup
Part 4 got the BackupPC program running, now let's try a backup of the localhost.
localhost: mkdir /backup/pc: Permission denied at /usr/share/backuppc/bin/BackupPC_dump line 193I looked at the /backup folder's settings, and it was set to root as the owner and group. First, I changed the group to backuppc, and then I changed the groups rights to include write.
sudo chgrp -R backuppc /backupNow, the backup has started.
sudo chmod -R g+w /backup
BackupPC_link got error -4 when calling MakeFileLink(/backup/pc/localhost/0/f%2fetc/fprotocols, ce42ab405aca581a1cff4f0ba04ab6c4, 1)No backup happened.
As I mentioned in Part 3, I found a new guide for the installation and configuration of BackupPC - BackupPC Setup at TakSuyama.com. I'll give it a try.
sudo apt-get updateSo far, so good. The restart of apache2 completed without incident and I can see a default web page. Just like inPart 2, I'm receiving a hostname error from apache. I'll try to fix it the same way.
sudo apt-get install ssh samba smbfs rsync apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
sudo useradd backuppcOK, the web interface for BackupPC is up. (I wish I could take a snapshot of this point, so it would be easy to go back in case of problems.)
sudo passwd backuppc
sudo apt-get install backuppc
htpasswd /etc/backuppc/htpasswd backuppcUsing the Edit Config tab, I changed the TopDir to /backup, and restart the web server again - just to be sure things are still OK. And they are. I'm feeling pretty good about this.
* Restarting backuppc...Which is a pretty poor error message. Why not tell me what needs to be updated?
No process in pidfile `/var/run/backuppc/BackupPC.pid' found running; none killed.
grep: /etc/backuppc/config.pl: Permission denied
BackupPC cannot be started because important parameters are missing from config.pl.
If you just upgraded BackupPC, please update /etc/backuppc/config.pl.
sudo /etc/init.d/backuppc restart
Labels: backup
In Part 2, we learned that I'm having trouble with permissions and Apache2.
(This is the third time I've tried this)
apache2: Could not reliably determine the server's fully qualified domain nameSeveral sites, including this one recommend that I modify /etc/apache2/httpd.conf to include the line:
ServerName hostnameI used the same name assigned as the hostname during the Ubuntu setup.
* Restarting web server apache2 httpd (pid 13462?) not runningI think it has something to do with the apache2 server running as root rather than backuppc.
install: cannot change owner and/or group of `/var/lock/apache2': Operation not permitted
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Labels: backup