Easy backup of files and programs

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
bin
Level 4
Level 4
Posts: 231
Joined: Wed Nov 22, 2006 12:12 pm
Location: Wiltshire UK

Re: Easy backup of files and programs

Post by bin »

Based on the excellent advice here I have stopped using TS and am now using BackInTime
User avatar
katman
Level 2
Level 2
Posts: 85
Joined: Wed Dec 31, 2014 11:41 am
Location: South

Re: Easy backup of files and programs

Post by katman »

Think I will try back in time for Linux and get rid of dual boot. Thanks for all replies
User avatar
katman
Level 2
Level 2
Posts: 85
Joined: Wed Dec 31, 2014 11:41 am
Location: South

Re: Easy backup of files and programs

Post by katman »

Hello Again,
I have put Linux Miint on a different hard drive from windows, ( no longer dual boot)
Now when using Time shift for backing up the system do you suggest putting it in on an external USB formatted to ext 4? When using back in time to back up personal data do you use an external USB drive also formatted for ext 4? After setting this up want to try it personally to see if it works.
Anyone have suggestions to do this. I have never gotten a backup to work and want to be sure before I have to try it for real again.
Help and suggestions to help with this project is appreciated.
Will deal with windows 10 backup later.
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Easy backup of files and programs

Post by AndyMH »

Yes, external usb drive with an ext4 partition on it. When you create the partition, add a label, e.g. mybackup. You can do this with both disks or gparted. When you plug the drive in, mint will automount it at /media/you/mybackup, if you don't have a label it will use the UUID, e.g. /media/you/05ac957-7487-41bb-a314-8ae1a43ef797, not user friendly.

If you use gparted to create an ext4 partition it is owned by root, read-only to you. To fix this, in a terminal (with the partition mounted):

Code: Select all

sudo chown $USER:$USER /media/you/mybackup
changes ownership to you.

Timeshift setup, settings > location. Just click on partition you want as the destination:
Screenshot from 2022-08-03 20-10-16.png
When timeshift runs it will mount the partition at /run/timeshift/backup (you can have the same partition mounted multiple times at different places in the filesystem at the same time).

Backintime setup, settings > general
Screenshot from 2022-08-03 20-12-31.png
You can click on the icon to the right and navigate to the folder you want as the destination, e.g /media/you/mybackup.
Will deal with windows 10 backup later.
I cheat, I mount my win C: partition via fstab at /home/andy/winC. Because it is in home, backintime takes snapshots of it for me. But get the basics working first :)
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
katman
Level 2
Level 2
Posts: 85
Joined: Wed Dec 31, 2014 11:41 am
Location: South

Re: Easy backup of files and programs

Post by katman »

Time to bring this up now....I am not to familiar with partition of hard drives but I want to learn. Does anyone on the forum know where I can find some good reading on how to do this beginning with the basics. I never had a chance in school......let me rephrase this, computers did not exist until way after I graduated from High School and Jr. College. I took math and electronics working until old enough for retirement. I have searched for some information but, what I have found is way over my head.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Easy backup of files and programs

Post by deepakdeshp »

katman wrote: Thu Aug 04, 2022 9:50 pm . I have searched for some information but, what I have found is way over my head.
Please see https://www.binarytides.com/linux-comma ... artitions/
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Easy backup of files and programs

Post by AndyMH »

katman wrote: Thu Aug 04, 2022 9:50 pm Time to bring this up now....I am not to familiar with partition of hard drives but I want to learn. Does anyone on the forum know where I can find some good reading on how to do this beginning with the basics.
Download the user guide for foxclone, I wrote a couple of sections on partition tables and the use of gparted and disks.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
katman
Level 2
Level 2
Posts: 85
Joined: Wed Dec 31, 2014 11:41 am
Location: South

Re: Easy backup of files and programs

Post by katman »

Used Timeshift on Linux mint and after several tries got it to work.....On to windows 10.
Thanks to all who contributed to my dilemma and helped me.
pbear
Level 16
Level 16
Posts: 6569
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Easy backup of files and programs

Post by pbear »

Glancing at my prior post on Win10 backup, I notice one issue I forgot to mention. The Windows backup tool does not use compression, but it only copies space in use. So your backup target only has to be as large as the used space on the system (plus at least a 20% cushion, no file system should be filled to the brim). Each backup goes in a separate folder, so you can have multiple backups on the same drive. Once up against the 20% cushion, manually delete the oldest one before making a new one. I do this because Windows will use the cushion before deleting the oldest backup.

I do a full system backup of Windows about twice a year (occasionally I run an extra). In the event of a restore, the system will automatically catch up any updates since the last backup. Then I update data files from their backup, which is maintained separately (and run often).
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Easy backup of files and programs

Post by AndyMH »

Assume this is the old win7 backup tool still in win10. For comparison, foxclone & rescuezila both use compression (pigz with compression=1). A foxclone backup of my system drive:

Code: Select all

took foxclone backup
root 21.59gib = 23.2gb img 8.2gb = 35% of original
home 163.05gib = 175.1gb img 112.6gb = 64% of original
total backup 184.64GB
restore time was 33:11
think the backup was 1hr17mins
Sizes for root and home are for used space (they only backup used blocks). Compression on home will depend on what you have in there.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
pbear
Level 16
Level 16
Posts: 6569
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Easy backup of files and programs

Post by pbear »

AndyMH wrote: Mon Aug 08, 2022 11:52 am Assume this is the old win7 backup tool still in win10.
Correct. In fact, it's called "Backup and Restore (Windows 7)" on Control Panel.
Petermint
Level 9
Level 9
Posts: 2983
Joined: Tue Feb 16, 2016 3:12 am

Re: Easy backup of files and programs

Post by Petermint »

Compression sounds nice. In my case, the big space users are images and they are bigger after compression because their internal format is already compressed. The biggest space saver, for me, is the rsync Ext4 trick of storing the same file only once. There are backup programs for Windows that can do something like that although nowhere near as fast as rsync. For that reason, I used to backup large NTFS user data partitions in Linux.
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Easy backup of files and programs

Post by AndyMH »

Petermint wrote: Mon Aug 08, 2022 6:29 pm I used to backup large NTFS user data partitions in Linux.
I do the same on my dual boot desktop, have win C: mounted at /home/andy/winC then backintime takes care of it.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Locked

Return to “Other topics”