Backintime vs. Grsync {SOLVED}

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
cliffcoggin
Level 8
Level 8
Posts: 2297
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Backintime vs. Grsync {SOLVED}

Post by cliffcoggin »

Having relied on Grsync for four years to back up my precious data, I have experimented today with Backintime from the Software Manager, and have to say it was easier to set up than its predecessor. The only odd thing I have noticed so far is that the files in the back up were read only. Is that normal?
Mint 19.2 Cinnamon.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cliff Coggin
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Backintime vs. Grsync

Post by AndyMH »

cliffcoggin wrote: Thu Apr 01, 2021 1:09 pm The only odd thing I have noticed so far is that the files in the back up were read only. Is that normal?
No. Mine are all owned by me. Did you use backintime(root)? or check permissions on the backup destination.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
cliffcoggin
Level 8
Level 8
Posts: 2297
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Backintime vs. Grsync

Post by cliffcoggin »

No, I used the non root version. The destination was a new USB stick that I had formatted to ext4 and named with the USB stick formatter.
Cliff Coggin
User avatar
AZgl1800
Level 20
Level 20
Posts: 11184
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Backintime vs. Grsync

Post by AZgl1800 »

don't know what difference it makes,
but for myself, as I back up to a 2nd partition and also to an extUSB drive,

I use the Root version.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Backintime vs. Grsync

Post by AndyMH »

cliffcoggin wrote: Thu Apr 01, 2021 1:57 pm The destination was a new USB stick that I had formatted to ext4 and named with the USB stick formatter.
Never used it but can't think of any reason why it would give any problems. I normally use gparted. If you use it to create an ext4 partition then it is owned by root. But that would throw lots of permissions errors doing a backintime snapshot as it wouldn't own the destination.

All I can suggest is have a look in the last log and see if there is anything there to provide clue.
Workspace 1_006.png
Workspace 1_006.png (36.85 KiB) Viewed 1573 times
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
cliffcoggin
Level 8
Level 8
Posts: 2297
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Backintime vs. Grsync

Post by cliffcoggin »

OK. I'll explore tomorrow.
Cliff Coggin
sanmig
Level 5
Level 5
Posts: 536
Joined: Tue Dec 04, 2018 8:27 am

Re: Backintime vs. Grsync

Post by sanmig »

cliffcoggin wrote: Thu Apr 01, 2021 1:09 pm The only odd thing I have noticed so far is that the files in the back up were read only. Is that normal?
AndyMH wrote: Thu Apr 01, 2021 1:30 pm No. Mine are all owned by me.
Mint 19.3 Cinnamon, I have Back In Time 1.1.12, not root, all backup files are read only.
This is the default.

In Settings/Options there is a checkbox for
“Full rsync mode. May be faster, but: - snapshots are not read only”.

Probably Andy has set that option?
(ups, … seems older versions don’t have the option, see screenshot in B.I.T docs?)
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Backintime vs. Grsync

Post by AndyMH »

sanmig wrote: Fri Apr 02, 2021 5:33 pm In Settings/Options there is a checkbox for
“Full rsync mode. May be faster, but: - snapshots are not read only”.

Probably Andy has set that option?
(ups, … seems older versions don’t have the option, see screenshot in B.I.T docs?)
I vaguely remember something like that and would have set it, but can't find it in options or expert options in V1.2.1 (LM20.1). Think I started using it in LM18 and with a separate /home partition have kept all my configs, so that might be where it came from. Which version are you running?
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
cliffcoggin
Level 8
Level 8
Posts: 2297
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Backintime vs. Grsync

Post by cliffcoggin »

sanmig wrote: Fri Apr 02, 2021 5:33 pm Mint 19.3 Cinnamon, I have Back In Time 1.1.12, not root, all backup files are read only.
This is the default.

In Settings/Options there is a checkbox for
“Full rsync mode. May be faster, but: - snapshots are not read only”.
I missed that setting. Thanks for the tip. Have you restored your backup files, and if so did they revert to normal permissions?
Cliff Coggin
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Backintime vs. Grsync

Post by AndyMH »

cliffcoggin wrote: Fri Apr 02, 2021 6:59 pm I missed that setting. Thanks for the tip. Have you restored your backup files, and if so did they revert to normal permissions?
I've not done a full restore, but have restored individual files and folders. Usually when I've screwed up some source code and it is easier to go back to yesterday rather than try to untangle what I did wrong. No problems.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
cliffcoggin
Level 8
Level 8
Posts: 2297
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Backintime vs. Grsync

Post by cliffcoggin »

So Andy can restore from read/write backup. I wonder if Sanmig can do the same from read only backup. I will have to test this after creating some disposable files for experimentation with.
Cliff Coggin
cliffcoggin
Level 8
Level 8
Posts: 2297
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Backintime vs. Grsync

Post by cliffcoggin »

I found some time to test the non root version of BIT as follows.

I created a folder called TEST containing a variety of files (jpeg, Calc, and Writer,) and sub-folders. I made a snapshot of it on a USB stick, and confirmed that some, though not all, of the files on the snapshot were read only, even though the originals were read & write.

The next step was to delete the originals in the TEST folder, and then restore them from the snapshot, and sure enough everything was restored as it was initially. I noted the log of the process mentioned that its final step was to restore permissions, so it looks if my concerns over permissions were groundless.

Nevertheless I don't like a backup that is not identical in all respects to the original, and requires some sort of intervention by me or a piece of software to restore it. I need to experiment further.
Cliff Coggin
cliffcoggin
Level 8
Level 8
Posts: 2297
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Backintime vs. Grsync

Post by cliffcoggin »

I repeated the above tests in full Rsync mode, and as expected the files in the snapshot were read & write, furthermore restoring them worked fine.

That leaves me wondering what the advantage of the default setting might be. Why would one not use the full Rsync made?
Cliff Coggin
User avatar
AZgl1800
Level 20
Level 20
Posts: 11184
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Backintime vs. Grsync

Post by AZgl1800 »

cliffcoggin wrote: Sat Apr 03, 2021 10:48 am I repeated the above tests in full Rsync mode, and as expected the files in the snapshot were read & write, furthermore restoring them worked fine.

That leaves me wondering what the advantage of the default setting might be. Why would one not use the full Rsync made?
Interesting find.

I will have to double check my BIT settings.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
sanmig
Level 5
Level 5
Posts: 536
Joined: Tue Dec 04, 2018 8:27 am

Re: Backintime vs. Grsync

Post by sanmig »

cliffcoggin wrote: Sat Apr 03, 2021 10:48 am That leaves me wondering what the advantage of the default setting might be. Why would one not use the full Rsync made?
N00b mode? (n00b here :wink: )
As you wrote, at restore all the permissions are restored, e.g. -rw what was -r-, it would be useless otherwise.
I think the read only is an attempt to protect the backup’s integrity, as I haven’t seen data files with rw in the backup?
Also all attributes are stored in an extra file so one could use a NTFS destination for the backup, with full rsync it requires the ext format.
AndyMH wrote: Fri Apr 02, 2021 6:40 pm Which version are you running?
sanmig wrote: Fri Apr 02, 2021 5:33 pm Mint 19.3 Cinnamon, I have Back In Time 1.1.12, not root,
Alan16
Level 2
Level 2
Posts: 82
Joined: Mon Jun 22, 2020 3:06 pm

Re: Backintime vs. Grsync

Post by Alan16 »

cliffcoggin wrote: Fri Apr 02, 2021 6:59 pm Have you restored your backup files, and if so did they revert to normal permissions?
cliffcoggin wrote: Sat Apr 03, 2021 7:36 am I wonder if Sanmig can do the same from read only backup.
cliffcoggin wrote: Sat Apr 03, 2021 10:22 am I noted the log of the process mentioned that its final step was to restore permissions, so it looks if my concerns over permissions were groundless.

Nevertheless I don't like a backup that is not identical in all respects to the original, and requires some sort of intervention by me or a piece of software to restore it. I need to experiment further.
cliffcoggin wrote: Sat Apr 03, 2021 10:48 am That leaves me wondering what the advantage of the default setting might be. Why would one not use the full Rsync made?
sanmig wrote: Sat Apr 03, 2021 6:11 pm As you wrote, at restore all the permissions are restored, e.g. -rw what was -r-, it would be useless otherwise.
I think the read only is an attempt to protect the backup’s integrity, as I haven’t seen data files with rw in the backup?
Also all attributes are stored in an extra file so one could use a NTFS destination for the backup, with full rsync it requires the ext format.
Same here, original files are rw-, snapshots are r--, to protect them I guess.

readthedocs says:

"Backups are stored in plain text. They can be browsed with a normal file-browser or in Terminal which makes it possible to restore files even without Back in Time.
Files ownership, group and permissions are stored in a separate compressed plain text file (fileinfo.bz2). If the backup drive does not support permissions Back in Time will restore permissions from fileinfo.bz2. So if you restore files without Back in Time, permissions could get lost.

https://backintime.readthedocs.io/en/latest/


You see the seperate file here:

Image
Alan16
Level 2
Level 2
Posts: 82
Joined: Mon Jun 22, 2020 3:06 pm

Re: Backintime vs. Grsync

Post by Alan16 »

I have two snapshots of the home/documents directory now, one made on feb 21, the next on april 4.
The original directory contains 5,5 Gb. The sizes of both snapshots are 3,2 Gb.
This raises a question. Since Back in Time snapshots are incremental, I would expect the first snapshot to be larger than the second?
cliffcoggin
Level 8
Level 8
Posts: 2297
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Backintime vs. Grsync

Post by cliffcoggin »

I can not comment on the backup size as I have only made the one full backup of home, and that was in full Rsync mode so that original permissions were kept.

Whether I shall continue with BIT remains to be seen as it is not as simple to navigate to individual files as Rsync backups. For now I will run both backup systems in parallel. After all, you can never have too many backups.
Cliff Coggin
sanmig
Level 5
Level 5
Posts: 536
Joined: Tue Dec 04, 2018 8:27 am

Re: Backintime vs. Grsync {SOLVED}

Post by sanmig »

Alan16 wrote: Sun Apr 04, 2021 6:41 pm This raises a question. Since Back in Time snapshots are incremental, I would expect the first snapshot to be larger than the second?
I see two questions here.
The first is the difference between 5.5 and 3.2 GB -
I can not explain but suspect not all files were backed up: Compare them using Nemo and check the log (menu "View").
In my case, when using B.I.T as normal user, there are warnings and files missing because of deficient permissions (e.g. my foxclone test images require root permission to access - unfortunately Nemo offers “Copy” but fails to do it as standard user …).
- Otherwise original and backup must have the same size!

The second:
Yes, the backups are incremental, but because of using Rsync (hard links, see https://www.geeksforgeeks.org/soft-hard ... unixlinux/) the incremental (hard) link presents the same file size as the first file to the OS, it is the same file. Each hard link is a perfect pointer to one and the same file, not ‘just a link’ … think of something more bidirectionally, similar to a mirror.
Only the total size of two (or more) incremental backups will be smaller than the sum of both (or all), depending on the difference in the data files.

But when you create a new backup folder (in the Settings) and take a backup the source file will be copied again into the new back up folder, requiring the same space there, too.
Alan16
Level 2
Level 2
Posts: 82
Joined: Mon Jun 22, 2020 3:06 pm

Re: Backintime vs. Grsync

Post by Alan16 »

sanmig wrote: Tue Apr 06, 2021 5:38 pm
I see two questions here.
The first is the difference between 5.5 and 3.2 GB -
I can not explain but suspect not all files were backed up: Compare them using Nemo and check the log (menu "View").
In my case, when using B.I.T as normal user, there are warnings and files missing because of deficient permissions (e.g. my foxclone test images require root permission to access - unfortunately Nemo offers “Copy” but fails to do it as standard user …).
- Otherwise original and backup must have the same size!

The second:
Yes, the backups are incremental, but because of using Rsync (hard links, see https://www.geeksforgeeks.org/soft-hard ... unixlinux/) the incremental (hard) link presents the same file size as the first file to the OS, it is the same file. Each hard link is a perfect pointer to one and the same file, not ‘just a link’ … think of something more bidirectionally, similar to a mirror.
Only the total size of two (or more) incremental backups will be smaller than the sum of both (or all), depending on the difference in the data files.

But when you create a new backup folder (in the Settings) and take a backup the source file will be copied again into the new back up folder, requiring the same space there, too.
Thanx sanmig, I only read your reply just now.

Yes, I found the answer to the first question: there’s a file excluded in the settings, and its size is 2.3 Gb, which makes up for the difference.

As for the second question:
So a hard link presents the same size as the file it points to.
When I delete data in that file, it becomes smaller. I save the file and take a new snapshot. Then the new hard link should present a smaller size then the old hard link.

I’ll experiment with this to see it.
Locked

Return to “Software & Applications”