Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I do automatic backups via "backintime" after every boot up. Today I noticed a briefly shown popup with that message "[E] Error: rsync: [sender] write error: Broken pipe (32)". So I checked and found that this happened since october 2019 i.e. for all of my backups since then. *grrrr*
First question: Are these backups still usable or rather, how can I find out which files are not "kosher" anymore?
These backups also have a history. The disk that held them originally was dying, so I formatted a new one with ext4, same size partition, and "rsync -aXHAv"ed my backups over. The new disk is what throws the error now. I could enlarge this partition with gparted.
Now, I have more backup media. I checked the next:
Code:
Failed to get take_snapshot log from None:
[Errno 2] No such file or directory: '/home/me/.local/share/backintime/takesnapshot_3.log'
Ahmm, what? This is from the backintime utility which worked fine until now. What does that mean for my older backups? I just created a new one with no errors but now for all three users in the local home but with only one in the backup profile. What the...
Anyone with experience in such cases? Thanks in advance for sharing .
Pipes are the list of components: rsync reads disk1 | network |internet or wherever......disk2. If it's sending away, and some link goes AWOL, there is a broken pipe error thrown, & things exit. It requires a restart or retry of the connection.
For the integrity of the backup, there is no solution, as presumably you have nothing to compare them to. But I don't think it's a real worry. They may, however be incomplete, if the backup stopped prematurely.
If it's a scripted backup, check the exit status of rsync. If it exits 0, backup is complete. If it's not 0, you can take it as incomplete.
EDIT: I'd try size for finding usable backups. Otherwise do them in a terminal, and make sure they are not finishing on an error.
Last edited by business_kid; 09-20-2021 at 05:44 AM.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Original Poster
Rep:
This is the kind of error I hate. All errors are gone! Even the logs back to 2019 list no more errors. What the ...
What I did is delete some snapshots of my children from times where I could be sure they didn't change anything being out of house. Then I created new snapshots on three different media to be on the secure side. Now all is well, pffff.
I'll just enlarge my /backup partition. Thanks for your input . Oh, and as to your "EDIT" backintime is a very handy tool. It even shows the rsync command it uses when you start it by hand, I'd hate to type that long a command .
Running rsync to a remote host from a script is difficult to do if you have not set up keys and configured both systems for ssh connection using keys. That may be your entire issue since it cannot connect without either a password or using keys.
Do you connect instantly with ssh and no password or do you have to enter a password to connect?
You do not say if the backups are on the same system or a different one so my comment is about a remote backup system.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Original Poster
Rep:
Ups, I answered yesterday but that post is gone. So again:
@business_kid This is a darn long command. Backintime shows is, it is at least three lines. Also, it is on automatic, it always does a backup after booting (or when I tell it to, e.g. using external disk(s)). I don't want to do it by hand every time (too lazy and forgetful ).
@computersavvy It is an other disk in the same machine mounted to /backup at every boot. So no ssh shenanigans.
We still have not had a look at the command. does it use the internet? FQDNs and directory paths can be long or short, depending on how you go about it. You can probably simplify it down somewhat
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.