Re: [BackupPC-users] Return to BackupPC
On 1/5/2021 9:05 AM, backu...@kosowsky.org wrote: I don't have a BPA, but I have compiled my own bpc 4.x for Ubuntu 18.04 - with code from June 2020. I can send you the packages if you want... Sorin Srbu wrote at about 15:50:05 +0100 on Tuesday, January 5, 2021: > Hello all! > > I've been away from BPC a few years because of changing jobs where there > already were commercial backup systems in place and thus no need for > BackupPC. However, along the road I also picked up a slew of new > technologies and am now running a three-node Proxmox-cluster at home for lab > stuff as well as personal advancement. All these physical and virtual > servers need to be backed up and here I am back with BackupPC. :-) I was searching for this the other day (because CentOS 8 goes EOL 12-31-2021) and found there are *.deb packages somewhere on the wiki pages. Might be the packages being discussed here, if so, sorry for redundancy. But, I could not locate a PPA. -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] BackupPC 4.x on Raspberry PI?
On 1/4/2021 9:55 AM, Les Mikesell wrote: On Mon, Jan 4, 2021 at 9:32 AM G.W. Haywood via BackupPC-users wrote: I've tried using a 4B and gave up with it - unreliable. That was the one reservation. I think I've posted about my experience on the list, check the archives. Maybe you just have a bad one or it is overheating in its case or something. I've left a 4B powered up for months without crashing. Mine doesn't have a load like backuppc - just occasionally playing videos with Kodi or Plex, but it doesn't crash. The only serious quirk I've seen is that having the HDMI port active interferes with wifi - but you'd want to use ethernet for backups anyway. I'm going to add here that I have seen a few posts (elsewhere) that some 4B w/8Gb RAM had crash issues and a 4B 4Gb running the same program runs fine. Wondering what model 4B the OP is using? (2Gb, 4Gb, or 8Gb?) -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
[BackupPC-users] Fwd: Re: Regarding $Conf{RsyncArgs}
Here is a better explanation of my question. If rsync backups $Conf{RsyncArgsExtra} are set to include acls & xattrs attributes in backups. During a restore, will BackupPC v4.4.0 restore the acls & xattrs? In other words if BackupPC backs up acls & xattrs attributes does it restore them OR do these, or some of these (listed below) need to be set to include acls or xattrs during restores /$Conf{RsyncArgsExtra} = []; $Conf{RsyncFullArgsExtra} = ['--checksum']; $Conf{RsyncIncrArgsExtra} = []; $Conf{RsyncRestoreArgs} = [ ... ]; $Conf{RsyncRestoreArgsExtra} = [];/ Forwarded Message Subject:Re: [BackupPC-users] Regarding $Conf{RsyncArgs} Date: Mon, 2 Nov 2020 08:39:09 -0600 From: Robert E. Wooden Reply-To: General list for user discussion, questions and support To: backuppc-users@lists.sourceforge.net On 11/2/2020 7:47 AM, backu...@kosowsky.org wrote: Note that 'acls' and 'xattrs' only work in BackupPC 4.x not 3.x Bob Wooden wrote at about 06:25:40 -0600 on Monday, November 2, 2020: > I suspect I am about to ask a question that may have been asked before. > Sorry for any redundancy. > > Regarding $Conf{RsyncArgs} = [ ... ] and all the sub 'sections' there of. > > I have had the following on various clients that needed to have the acls > and xattrs attributes backed up for many years now. Like so: > > $Conf{RsyncArgsExtra} = []; > --acls > --xattrs > > I have been lucky as all these years I have never noticed these > attributes missing after a restore or for that matter, needed to restore > many files and found these acls & xattrs atrributes where missing. > > /So, my question is do I need to include '--acls' & '--xattrs' to any of > the other five sections listed?: > > $Conf{RsyncArgsExtra} = []; > $Conf{RsyncFullArgsExtra} = ['--checksum']; > $Conf{RsyncIncrArgsExtra} = []; > $Conf{RsyncRestoreArgs} = [ ... ]; > $Conf{RsyncRestoreArgsExtra} = [];/ > > Especially for restore purposes? > > -- > (Sent from home location.) > > Bob Wooden > > ___ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: https://github.com/backuppc/backuppc/wiki > Project: https://backuppc.github.io/backuppc/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/ I did not think that 3.3 was still in use but, yes, I suspect some are still using it. Did not mean to offend anyone. In my case: OS: CentOS 8.2.2004 BackupPC: V4.4.0 -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] Regarding $Conf{RsyncArgs}
On 11/2/2020 7:47 AM, backu...@kosowsky.org wrote: Note that 'acls' and 'xattrs' only work in BackupPC 4.x not 3.x Bob Wooden wrote at about 06:25:40 -0600 on Monday, November 2, 2020: > I suspect I am about to ask a question that may have been asked before. > Sorry for any redundancy. > > Regarding $Conf{RsyncArgs} = [ ... ] and all the sub 'sections' there of. > > I have had the following on various clients that needed to have the acls > and xattrs attributes backed up for many years now. Like so: > > $Conf{RsyncArgsExtra} = []; > --acls > --xattrs > > I have been lucky as all these years I have never noticed these > attributes missing after a restore or for that matter, needed to restore > many files and found these acls & xattrs atrributes where missing. > > /So, my question is do I need to include '--acls' & '--xattrs' to any of > the other five sections listed?: > > $Conf{RsyncArgsExtra} = []; > $Conf{RsyncFullArgsExtra} = ['--checksum']; > $Conf{RsyncIncrArgsExtra} = []; > $Conf{RsyncRestoreArgs} = [ ... ]; > $Conf{RsyncRestoreArgsExtra} = [];/ > > Especially for restore purposes? > > -- > (Sent from home location.) > > Bob Wooden > > ___ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: https://github.com/backuppc/backuppc/wiki > Project: https://backuppc.github.io/backuppc/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/ I did not think that 3.3 was still in use but, yes, I suspect some are still using it. Did not mean to offend anyone. In my case: OS: CentOS 8.2.2004 BackupPC: V4.4.0 -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] Symlink for /var/lib/BackupPC
On 10/28/2020 3:53 PM, Greg Harris wrote: Maybe sounds familiar? Try: cp -R /var/lib/BackupPC /BackupDriveLoc chown -R backuppc:backuppc /BackupDriveLoc rm -rf /var/lib/BackupPC ln -s /BackupDriveLoc /var/lib/BackupPC chcon system_u:object_r:var_lib_t:s0 /var/lib/BackupPC chcon -R system_u:object_r:var_lib_t:s0 /var/lib/BackupPC/* Thanks, Greg Harris YEP, that did it This tip will go IN the book. THANKS -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] Symlink for /var/lib/BackupPC
On 10/28/2020 3:09 PM, Richard Shaw wrote: Copied or moved? If you unmount dataR6 do you still the the directories in /var/lib/BackupPC? Not that it should matter, since mounting will mask any files left in the directory :) Symbolic links should work but I've always preferred bind mounting. If you log in as the backuppc user can you create files in /var/lib/BackupPC? # su -l backuppc -s /bin/bash $ touch /var/lib/BackupPC/test Or something like that. Also, look at both the BackupPC logs and the apache logs. Thanks, Richard So, I have realized that I could rebuild (again) and I will not be "out much" but, what I would do differently this time is the installation sequence. Previously, I had installed the OS, installed BackupPC (it ran but /var/lib/BackupPC was storing on the OS hdd and not the raid array.) After I'd gotten BackupPC to run, then I created the raid array. My problems began to mount. This install, I would OS first, setup the array and create the symlink and then, install BackupPC. The BackupPC install should simply follow the symlink (think it is the /var/lib/BackupPC directory it's looking for) and place backup files and directories onto the array, like I want. I will need to change my install sequence and that should solve my problem . . . I think. (Learn as you go, sometimes.) -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] Symlink for /var/lib/BackupPC
On 10/28/2020 2:48 PM, Greg Harris wrote: Dumb question: SELinux isn’t biting you is it? Thanks, Greg Harris Good idea Greg I hadn't thought about that. I just disabled with "setenforce 0" and tried BackupPC and still the same. [root@bkppcr6 ~]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: *enforcing* Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Memory protection checking: actual (secure) Max kernel policy version: 31 [root@bkppcr6 ~]# setenforce 0 < [root@bkppcr6 ~]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: *permissive* Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Memory protection checking: actual (secure) Max kernel policy version: 31 Still "Can't open log file" and no running backup (Partial or Full.):-( -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
[BackupPC-users] Symlink for /var/lib/BackupPC
I rebuilt a machine to update to CentOS 8 and ease upgrades because BackupPC v.4.40 (as of 2020-10-28) is available via epel & PowerTools repo per this: https://kifarunix.com/install-and-configure-backuppc-on-centos-8/ I created the symlink for /var/lib/BackupPC to connect to /dataR6 (a raid6 array). I copied all the directories and files over from /var/lib/BackupPC, changed directory and file permissions of the new directory to match the old and restarted BackupPC. Apparently I did something incorrectly. BackupPC runs but, will not capture a client. "Clicking" 'FULL BACKUP' of any existing client causes nothing. Checking 'Server Status' and no backups have started. Checking logs states "Can't open log file." Suggestions on what to do? -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released
On 6/23/2020 8:22 AM, Mike Hughes wrote: Thanks so much Richard! Will COPR installations auto-update via yum repository updates or do we need to specifically run a COPR update manually? I have been using COPR for a few years and yes, it will update when you "yum update". -- Bob Wooden ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] stumped by ssh
I'll keep this for future reference. Thanks! Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 10/13/2012 10:08 AM, Tyler J. Wagner wrote: > On 2012-10-13 14:33, Robert E. Wooden wrote: >> What happened, I am asking myself. Last night I was running "ssh -vvv >> [clienthostname]" to test my ssh connection. ssh was 'complaining' that I >> had some bad lines in my /var/lib/backuppc/.ssh/known_hosts file. I removed >> those 'bad lines' with "ssh-keygen -f "/var/lib/backuppc/.ssh/known_hosts" >> -R bob-desktop2" and long story short, this morning (half asleep) decided >> to let my backuppc server fail again trying to backuppc this troubled >> client. To my amazement, half asleep, it did not fail! > Some related SSH tips: > > 1. Remove your known_hosts file now. > 2. Create an ~/.ssh/config file, owned by the right user, mode 644, > containing: > > HashKnownHosts no > StrictHostKeyChecking no > > This means that: > > 1. Lines will be added to known_hosts without prompting (no more pressing > yes to accept new fingerprints). > 2. Key mismatches will be tolerated with SSH key logins. A warning will be > printed, and password logins are still blocked. > 3. Lines added to known_hosts will have a readable host/ip entry at the > begin of line. This makes removing conflicts easier. > > Some people think this reduces security. It does. But I consider it a fair > balance versus usability, especially when you work with a large number of > hosts. > > Regards, > Tyler > -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] stumped by ssh
I work nights, so, last night when I got home I sent my previous email. This morning I got up early and while (software) updating my backuppc server I decided to try "sudo -u backuppc /usr/share/backuppc/BackupPC_dump -v -f [clienthostname]" and the client is backup as I write this. What happened, I am asking myself. Last night I was running "ssh -vvv [clienthostname]" to test my ssh connection. ssh was 'complaining' that I had some bad lines in my /var/lib/backuppc/.ssh/known_hosts file. I removed those 'bad lines' with "ssh-keygen -f "/var/lib/backuppc/.ssh/known_hosts" -R bob-desktop2" and long story short, this morning (half asleep) decided to let my backuppc server fail again trying to backuppc this troubled client. To my amazement, half asleep, it did not fail! Thank you everyone for your help. Somehow, during this journey, I stumbled onto the solution but, I might never have found it without the help of the mailing list. So, thank you everyone! Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] stumped by ssh
I still haven't figured this out so I ran the following: admin@wdnbkup01:~$ su backuppc Password: $ ssh -vvv root@bob-desktop2 OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to bob-desktop2 [192.168.242.120] port 22. snip < snip < debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel_input_status_confirm: type 99 id 0 debug2: PTY allocation request accepted on channel 0 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: shell request accepted on channel 0 Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64) * Documentation: https://help.ubuntu.com/ Last login: Fri Oct 12 11:52:49 2012 from wdnbkup01 root@bob-desktop2:~# As you can see, it logs into root@bob-desktop2 like it is suppose too! I know very little about rsync. But, doesn't this mean I have an issue with rsync? (Ok, somebodies gonna just say it, then yes, it is time to learn rsync but, if you think I am heading in the correct direction, please, please let me know.) Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] stumped by ssh
Thanks everyone. I will add that I am not running SELinux nor am I running ufw (Ubuntu firewall.) I am an Ubuntu OS house. I have even considered a ssh blacklist but, I cannot find one anywhere (unless I am looking in the wrong directories.) I am beginning to consider possible hardware issues but, it worked before I re-installed the OS. So, that doesn't make much sense. What can this issue be??? Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] stumped by ssh
Yes, when I ran "ssh -l root [clientip] whoami" I was indeed backuppc user. Thanks Les Mikesell and Richard Shaw. Ray Frush, I ran "admin@wdnbkup01:~$ sudo -u backuppc rsync -aP root@[myclientip]:/tmp /tmp/client [sudo] password for admin: receiving incremental file list created directory /tmp/client tmp/ tmp/.X0-lock 11 100% 10.74kB/s0:00:00 (xfer#1, to-check=40/42) tmp/indicator-weather-1010.pid 5 100%0.07kB/s0:00:00 (xfer#2, to-check=39/42) tmp/qtsingleapp-homebo-c768-3f2 tmp/qtsingleapp-homebo-c768-3f2-lockfile 0 100%0.00kB/s0:00:00 (xfer#3, to-check=37/42) tmp/tmp9rfGGH 0 100%0.00kB/s0:00:00 (xfer#4, to-check=36/42) tmp/tmpTJVb6u 0 100%0.00kB/s0:00:00 (xfer#5, to-check=35/42) tmp/tmpdvZaiW 0 100%0.00kB/s0:00:00 (xfer#6, to-check=34/42) tmp/tmpklVFkz 0 100%0.00kB/s0:00:00 (xfer#7, to-check=33/42) tmp/unity_support_test.0 0 100%0.00kB/s0:00:00 (xfer#8, to-check=32/42) tmp/.ICE-unix/ tmp/.ICE-unix/13650 tmp/.X11-unix/ tmp/.X11-unix/X0 tmp/at-spi2/ tmp/at-spi2/socket-10572-1804289383 tmp/at-spi2/socket-13312-1804289383 tmp/at-spi2/socket-1360-1804289383 tmp/at-spi2/socket-4936-1804289383 tmp/keyring-vALUtM/ tmp/keyring-vALUtM/control tmp/keyring-vALUtM/gpg tmp/keyring-vALUtM/pkcs11 tmp/keyring-vALUtM/ssh tmp/orbit-bob/ tmp/pulse-2L9K88eMlGn7/ tmp/pulse-PKdhtXMmr18n/ tmp/pulse-ikLM6dQvIz5H/ tmp/pulse-ikLM6dQvIz5H/native tmp/pulse-ikLM6dQvIz5H/pid 6 100%0.07kB/s0:00:00 (xfer#9, to-check=10/42) tmp/sni-qt_skype_13737-Us8Air/ tmp/sni-qt_skype_13737-Us8Air/icons/ tmp/sni-qt_skype_13737-Us8Air/icons/hicolor/ tmp/sni-qt_skype_13737-Us8Air/icons/hicolor/24x24/ tmp/sni-qt_skype_13737-Us8Air/icons/hicolor/24x24/apps/ tmp/sni-qt_skype_13737-Us8Air/icons/hicolor/24x24/apps/skype_13737_0972e5fde53a4a87346ebb91c4c2b159.png 935 100%8.70kB/s0:00:00 (xfer#10, to-check=5/42) tmp/sni-qt_skype_13737-Us8Air/icons/hicolor/24x24/apps/skype_13737_6cbeda8e2c9f56d3ac75ccdf8d282a69.png 888 100%8.18kB/s0:00:00 (xfer#11, to-check=4/42) tmp/sni-qt_skype_13737-Us8Air/icons/hicolor/24x24/apps/skype_13737_c2ee5f08e8df31fd4dcef88f95ed4a16.png 1389 100% 12.80kB/s0:00:00 (xfer#12, to-check=3/42) tmp/sni-qt_skype_13737-Us8Air/icons/hicolor/24x24/apps/skype_13737_dad77418071bead905e2dbe605715dcd.png 968 100%8.83kB/s0:00:00 (xfer#13, to-check=2/42) tmp/sni-qt_skype_13737-Us8Air/icons/hicolor/24x24/apps/skype_13737_f2fc4a539a7b9553f5b35241d1154e84.png 911 100%8.31kB/s0:00:00 (xfer#14, to-check=1/42) tmp/ssh-UauLqpz13650/ tmp/ssh-UauLqpz13650/agent.13650 sent 376 bytes received 7160 bytes 15072.00 bytes/sec total size is 5113 speedup is 0.68 You clearly know more about rsync than I do. What does this tell you? And for the record, I have three other clients working properly. For what ever reason this particular client (that use to work fine) has decided to resist exchanging keys and after I got it to exchange keys and answer whoami with 'root' still will not backup. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] stumped by ssh
I have been using Backuppc for a few years now. Recently I upgraded my machine to newer, faster hardware. Hence, I have experience exchanging ssh keys, etc. It seems I have one client that refuses to connect via ssh. When I exchanged keys and ran "ssh -l root /[clientip]/ whoami" the client properly returns 'root'. When I "sudo -u backuppc /usr/share/backuppc/BackupPC_dump -v -f /[clienthostname]/" I get 'dump failed: Unable to read 4 bytes'. I have checked versions of rsync, ssh and openssh-server on both the backuppc machine and the client. They are the same on both (both running Ubuntu 12.04LTS.) I have tailed the clients auth.log file it shows "sshd[10109]: Connection closed by /[backuppc-ip]/ [preauth]" so, the backuppc machine is closing the connection. (I might be tailing the wrong file, I am not sure.) Why won't this client connect? -- Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] I've Tried Everything
Every time I have created a new client I have to run: /sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -v -f [insert_your_backupclient_name_here]/ This is the first suggestion at; http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Troubleshooting I am suggesting this because, if my memory serves me correctly, it allows you to accept the ssh string. Just let the backuppc complete and in a day or so backuppc will process the client properly. (I never really researched why BackupPC does this. I just discovered that this works for my "first time backups" and all works great after.) This has always been my work around for this first backup failure issue. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 02/15/2012 11:20 PM, Zach Lanich wrote: Hey guys i've been trying for like 12 hrs to get BackupPC to work. im not Amazing at linux, but i have tried Tar, Rsync, etc. each thing has a reason it fails. i got ssh set up and tested it and it works fine via ssh keys. using Tar, it errors (no files to dump) if i leave the "BackupZeroFilesIsFatal" box checked, it errors if there's less files in the attempted backup than the prev one, and even if i un-check it, it errors (65280 ) on a random .png file that seems to be fine. can sum1 plz help me. i know BackupPC is supposed to be one of the best so i must be missing something -- Virtualization& Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] automatic waking and shutting down Linux clients
First, I am very much a novice at bash scripting, so bare with me as I learn by doing. I found Salik Rafiq's blog (http://blog.chameeya.com/2011/08/backuppc-and-waking-machines.html) about waking his client machines with WOL and it worked perfectly. (I believe I may have posted that fact recently and failed to give Salik credit, sorry about that.) But, here are the recent changes. I placed my 'wolping.sh' in /usr/local/bin. This was done per Michael Stowe's suggestion on this forum. Thank you, Michael. I then gave it 'chmod 750 [filename]' permissions and 'chown backuppc:www-data' ownership. Then, as per Salik Rafiq's blog, remove the "NmbLookupFindHostCmd" string under the 'Backup Settings' tab of the _server_ config file. Then, via the 'Server' tab, changed the "PingPath" to /usr/local/bin/wolping.sh. This sufficiently wakes all my Linux client machines (that have already been setup to WOL. Check your distro for instructions.) Now, shutting down clients after BackupPC has completed that client's backup (whether it was incremental or full backup.) I have a small four computer household. Of the four (as of today) I only want to shutdown one of them after the client backup has completed. So, I simply placed '/usr/local/bin/shutdown.sh' into the client config file line "DumpPostUserCmd". That shutdown script is: "ssh -T root@[my client static IP address] /sbin/shutdown -h now >/dev/null" (minus the quotation marks, of course.) I now know that I can WOL a client and shut it down when the backup has completed. Now, time to refine and simplify my shutdown script. I have to study the manpage of ssh to see if "-T" means the same as the ">/dev/null" term at the end of the string. If I don't need both then . . . I am sure someone will have some thoughts and opinions? -- Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Getting backuppc to wol a client
You are absolutely correct. I never considered the FHS and by your suggestion may, and most likely will, move to correct location in future. Thank you for your help. Your polite suggestions are appreciated. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/06/2011 11:24 AM, Michael Stowe wrote: > > On a vaguely related note, the FHS restricts /etc to static configuration > files, so this properly belongs in the /usr hierarchy, for example, under > /usr/local/bin. Like extensions, the FHS is just a set of guidelines, and > failure to adhere to it doesn't result in any functional problems, of > course. > -- Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Getting backuppc to wol a client
First, I created wolping.sh (notice change from .bsh to .sh) and put it into /etc/backuppc. Changed it permissions to allow execution (chmod 750 [filename].) Changed owner to backuppc:www-data. Found NmbLookupFindHostCmd and made it blank. Then set server pingpath to /etc/backuppc/wolping.sh. Created /etc/ethers containing my client mac addresses (because I had manually tested etherwake from server and it was working already so why change to wakeonlan.) And it worked for me. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/06/2011 03:26 AM, egrimisu wrote: > Hi guys, > thanks for posting the small guide, > > unfortunettly it does not work for me, the message that i get is "2011-09-06 > 11:06:31 no ping response" > > what i did exacly is > > create /etc/backuppc/wolping.bsh with the code in the guide, added owner > backuppc and group www-data , 777 rights just to be sure > set PingPath to /etc/backuppc > deleted content for NmbLookupFindHostCmd (blank) > added to /etc/ethers a clinet pc's mac and hostname > what i haven't understood is who will execute wolping.bsh? how backuppc knows > to execute that specific file? > > Am i missing anythig? > thanks > > +-- > |This was sent by egrim...@yahoo.com via Backup Central. > |Forward SPAM to ab...@backupcentral.com. > +-- > > > > -- > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > ___ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List:https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki:http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Getting backuppc to wol a client
I am, please post your details. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/06/2011 12:17 AM, Michael Stowe wrote: > > The latter part is a fairly trivial addition to the scripts I use to > invoke shadow copies ... I'll provide details (and scripts) if anybody's > interested. > > -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Getting backuppc to wol a client
Answer to No. 1 question:Yes. Answer to No. 2 question:Part 1: Because ten hours is, in my case, sufficient time for it to have safely completed it's tasks.Part 2: Been backing up my four computers like this since January, 2011. Had a completed backup everyday for each computer. I have a small system. If I had, for example, 10 computers to backup, I would let backuppc server run all the time, backup during the night (like I do now) and all would be great. But, like I said, I'm small, so . . . . Now I just need to get my clients to shutdown when they have completed their backup, hum . . . . next project! Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/04/2011 08:43 PM, Holger Parplies wrote: > > 1. Is BackupPC_nightly getting a chance to run (regularly)? > 2. Supposing you are automatically shutting down your BackupPC server, how > do you make sure you are doing that when everything is idle? In > particular, > if the first backup attempt ever fails, will BackupPC get a chance to > retry, > or will you miss a backup that day? -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] Getting backuppc to wol a client
I have occasionally tried to get BackupPC to wol my clients. This weekend I got serious thanks to some activity on this forum. Here is what I have got working this weekend. I discovered this post: /http://blog.chameeya.com/2011/08/backuppc-and-waking-machines.html / I read through this article and it is so simple I had to try it. And, it just works so now, I am saving energy and my family (specifically my wife) is happier. To further save energy, I set up my router (dd-wrt) to wake the BackupPC machine. What can I say, it just feels good, too!! -- Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] cannot get backuppc to wol a client
Tim, what OS is your BackupPC running on? Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/03/2011 04:33 PM, Tim Fletcher wrote: On Sat, 2011-09-03 at 16:09 -0500, Robert E. Wooden wrote: I have worked on this issue in the past for myself. Never really got it completed. However, your email has me interested again and this is good weekend to work on this. I've had it working for a year or so with the following setup: In the file /etc/sudoers add the following lines: Cmnd_Alias WOL = /usr/bin/wakeonlan,/usr/sbin/etherwake backuppc ALL=(root) NOPASSWD:WOL And change the pingcmd for the hosts to the following line: $Conf{PingCmd} = '/usr/local/bin/wakeup.sh $host'; I've also attached a slightly edited version of the script I use to fire off the WoL packets. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] cannot get backuppc to wol a client
Well, your development on this is way over my head but, I sure do like your wakeup script. In my case, I worked on this last January or so and forgot where I left off. I am embarrassed to say that I cannot find my notes from then and so I do not know want other related commands (within BackupPC) that I may have changed. I am sitting here scratching my head, deciding how to proceed. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/03/2011 04:33 PM, Tim Fletcher wrote: On Sat, 2011-09-03 at 16:09 -0500, Robert E. Wooden wrote: I have worked on this issue in the past for myself. Never really got it completed. However, your email has me interested again and this is good weekend to work on this. I've had it working for a year or so with the following setup: In the file /etc/sudoers add the following lines: Cmnd_Alias WOL = /usr/bin/wakeonlan,/usr/sbin/etherwake backuppc ALL=(root) NOPASSWD:WOL And change the pingcmd for the hosts to the following line: $Conf{PingCmd} = '/usr/local/bin/wakeup.sh $host'; I've also attached a slightly edited version of the script I use to fire off the WoL packets. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] cannot get backuppc to wol a client
I have worked on this issue in the past for myself. Never really got it completed. However, your email has me interested again and this is good weekend to work on this. So, last night I Googled "BackupPC wol" got some more info. This is the article that started me off last January: > http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/backuppc-21/wol-how-it-works-for-me-74879/ This writing was initially a little robust for my needs, however he brings up some very good ideas. This article is from Ubunut-fr (France) and needed to be translated by Google: > http://doc.ubuntu-fr.org/backuppc It relates to Windows pc's, should that be what you need. I, personally, am trying to wake and backup Ubuntu machines. I cannot say if it works with other distros, but I don't see why it would not. My next step is to move my wake-on-lan scripts over to my BackupPC machine (the scripts are working on my desktop to wake my test machine.) I'll continue now my testing and keep you posted as I go. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/02/2011 01:18 PM, Tim Fletcher wrote: > On Fri, 2011-09-02 at 00:34 -0700, egrimisu wrote: >> Hi guys, >> >> backuppc won't wol client pc >> >> NmbLookupFindHostCmd = /etc/backuppc/wakeup.sh 00:1a:4d:8c:0a:78 1 $host >> >> wakeup.sh has 777 rights and contains: >> >> >> #!/bin/bash >> wakeonlan $1 >> sleep ${2}m >> /usr/bin/nmblookup $3 >> >> using the dos command wolcmd.exe 001a4d8c0a78 192.168.2.74 255.255.255.0 >> wakes the pc up. > Sending the WoL packets need root (admin in the windows world) > privileges so you will need to make setup sudo to allow the backuppc > user to run wakeonlan as root or you need to setuid the wakeonlan > binary. (bad idea) > -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/