LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-30-2020, 03:57 PM   #1
gregors
Member
 
Registered: Mar 2018
Posts: 177

Rep: Reputation: Disabled
What's wrong with my backup?


Hi there!

I used to make weekly backups with rsync, that was under Debian 7 and Slackware 14.

A few weeks ago I installed Debian 10 and made a fresh complete backup of my home directory to a new 4 TB USB disk using 'cp -arv /home /media/backup' and went on using my backup script.

Yesterday I had to restore some files and saw that my rsync script seems to ignore directorys if they are hidden, e.g.

Code:
~/.ausgaben/
Did the default globbing setting change between Debian 7 and Debian 10? Does globbing differ between root and user account?

The rsync command in my backup script is
Code:
rsync   -auvEhs --log-file=/usr/local/var/log/gregors_backup-log --exclude=lost+found/ --exclude=platz/ /home/gszaktilla /media/backup/home/gszaktilla
TIA

Gregor

PS:
The log file entry says
Code:
2020/08/28 19:19:58 [6916] >f.st...... gszaktilla/.ausgaben/ausgaben.txt
and it seems my local documentation doesn't mention the meaning of that '>f.st......' stuff. So, WTF is going on here?

Last edited by gregors; 08-30-2020 at 04:27 PM.
 
Old 08-31-2020, 05:32 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,509

Rep: Reputation: Disabled
First place I'd look is the rsync man page in your Debian 10 installation.

(There have been quite a lot of changes with the release from Wheezy to Buster.)
 
Old 08-31-2020, 09:39 AM   #3
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
First place I'd look is the rsync man page in your Debian 10 installation.
Of course that is what I did first. The result is the rsync command I mentioned.

The thing is that files in hidden directories still aren't backed up and the man page doesn't tell me what the entry in the log file means.

:-/

Gregor
 
Old 08-31-2020, 11:22 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,998

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
https://stackoverflow.com/questions/...-in-rsync-logs
 
1 members found this post helpful.
Old 08-31-2020, 11:33 AM   #5
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Great! Thanks a lot!

I was looking for a separate chapter on log things.

Gregor
 
Old 08-31-2020, 11:38 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,998

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
the documentation of rsync is huge, you can try the official site: https://rsync.samba.org/documentation.html.
Also you may try the rsync mailing list.
 
Old 08-31-2020, 11:39 AM   #7
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gregors View Post
Great! Thanks a lot!

I was looking for a separate chapter on log things.

Gregor
PS: I am already thinking of writing a new backup script - a 'cp -avr' part for my home directory excluding subdirectories with mounted disks (like '~/dokumente/datensammlung' or '~/test') and an rsync part for the rest (which don't contain hidden things anyway).

Ooops. Something went wrong with my quoting.

Last edited by gregors; 08-31-2020 at 11:42 AM.
 
Old 08-31-2020, 11:42 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,998

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
you can find a ready-made backup tool (rsync based) if you wish (on the net). Also you may try incremental backup and other tricks to make it faster.
 
Old 08-31-2020, 11:47 AM   #9
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you can find a ready-made backup tool (rsync based) if you wish (on the net). Also you may try incremental backup and other tricks to make it faster.
Speed is not a problem - not at all. I do my backups during night time on mon/tue. They usually take less than a half hour.

Thx again!

Gregor
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Backup script needed | backup every 1-2 seconds (Online/Hot backup) reda Linux - Newbie 4 04-20-2019 05:02 PM
[SOLVED] Backup, shrink backup and modify MBR of backup jps1x2 Linux - General 1 12-17-2013 05:03 AM
2domain but backingup the wrong one .. what am i doing wrong salimmeethoo Linux - Server 3 10-17-2007 10:43 AM
What is wrong with reiserfs? wrong free space mesh2005 Linux - General 1 05-03-2007 07:21 AM
my time is wrong and calender is also wrong Paxmaster Linux - General 6 12-16-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration