Can IFL be used to make a copy of running Linux system?

User discussion and information resource forum for Image products.

Can IFL be used to make a copy of running Linux system?

Postby eoa » Thu Jan 02, 2020 6:52 pm

Specifically, if I install IFL to a running Xubuntu 18.04.3 system, can IFL be used to backup that system while it is running? My first tests produce backups that are not bootable
eoa
 
Posts: 1
Joined: Tue Mar 13, 2018 2:30 pm

Re: Can IFL be used to make a copy of running Linux system?

Postby TeraByte Support » Thu Jan 02, 2020 7:59 pm

You can but it should be mounted read-only or unmounted. If being
changed, there could be parts of the file system out of sync. In
general you should do entire drive backup/restore unless you know the
specifics of what you're doing. Also if you are using LVM, you can
create a snapshot and backup the snapshot.

On 1/2/2020 5:52 PM, eoa wrote:
> Specifically, if I install IFL to a running Xubuntu 18.04.3 system, can IFL be used to backup that system while it is running? My first tests produce backups that are not bootable
>
>

TeraByte Support
 
Posts: 2957
Joined: Thu May 05, 2011 3:37 pm

Re: Can IFL be used to make a copy of running Linux system?

Postby Brian K » Fri Jan 17, 2020 2:01 pm

TeraByte Support wrote:
> You can but it should be mounted read-only or unmounted.

What is the recommended procedure for doing this?
Brian K
 
Posts: 1763
Joined: Thu Aug 11, 2011 6:11 pm
Location: NSW, Australia

Re: Can IFL be used to make a copy of running Linux system?

Postby TeraByte Support » Sat Jan 18, 2020 10:06 am

Unmounted means you don't mount it and mounted read-only means you use
the read only option (ro) when mounting/remounting.

You can also setup to launch via grub
https://www.terabyteunlimited.com/kb/article.php?id=354


On 1/17/2020 1:01 PM, Brian K wrote:
> TeraByte Support wrote:
>> You can but it should be mounted read-only or unmounted.
>
> What is the recommended procedure for doing this?
>
>

TeraByte Support
 
Posts: 2957
Joined: Thu May 05, 2011 3:37 pm

Re: Can IFL be used to make a copy of running Linux system?

Postby Brian K » Sun Jan 19, 2020 3:56 pm

I gave up trying to make the Linux Mint root partition Read Only. I have suppressed the Grub boot menu so this is how I've automated a Mint backup. Starting in Mint.

start.sh is...

#! /bin/sh
/home/brian/bjk/336/tbosdt /home/brian/bjk/tbos/IFL-backup/mount-copy.tbs
/home/brian/bjk/tbos/IFL-backup/bootnowu.sh
echo

mount-copy.tbs is...

sub main()
ext("open fs 0: 4 0x3")
ext("del file 0:/scripts/scriptslist.txt --y")
ext("SET TEXTLINE 0:/scripts/scriptslist.txt ^"backup-mint.tbs^"")
ext("close fs 0:")
end sub

bootnowu.sh is...

#! /bin/sh
echo password | sudo -S bjk/bn/bootnowu ifl
echo

backup-mint.tbs is...

sub main()
exec("/tbu/imagel --b --uy --d:{E90B41C7-402F-AF5A-CD98-C75B22480200}@0xC --f:{5E7D3ED2-5C5C-EFFA-3EF5-855B7573FFFF}@0x2:^"/MINT-193^"", 1)
ext("SET TEXTLINE /tbu/boot/scripts/scriptslist.txt ^"*^" -d")
exec("/tbu/scripts/mint.sh")
end sub

mint.sh is...

#! /bin/sh
cd boot/scripts/bn
./bootnowu Mint-Cinn-19.3
Brian K
 
Posts: 1763
Joined: Thu Aug 11, 2011 6:11 pm
Location: NSW, Australia

Re: Can IFL be used to make a copy of running Linux system?

Postby TeraByte Support » Mon Jan 20, 2020 8:46 pm

Nice, maybe add to scripting too ?

On 1/19/2020 2:56 PM, Brian K wrote:
> I gave up trying to make the Linux Mint root partition Read Only. I have suppressed the Grub boot menu so this is how I've automated a Mint backup. Starting in Mint.
>
> start.sh is...
>
> #! /bin/sh
> /home/brian/bjk/336/tbosdt /home/brian/bjk/tbos/IFL-backup/mount-copy.tbs
> /home/brian/bjk/tbos/IFL-backup/bootnowu.sh
> echo
>
> mount-copy.tbs is...
>
> sub main()
> ext("open fs 0: 4 0x3")
> ext("del file 0:/scripts/scriptslist.txt --y")
> ext("SET TEXTLINE 0:/scripts/scriptslist.txt ^"backup-mint.tbs^"")
> ext("close fs 0:")
> end sub
>
> bootnowu.sh is...
>
> #! /bin/sh
> echo password | sudo -S bjk/bn/bootnowu ifl
> echo
>
> backup-mint.tbs is...
>
> sub main()
> exec("/tbu/imagel --b --uy --d:{E90B41C7-402F-AF5A-CD98-C75B22480200}@0xC --f:{5E7D3ED2-5C5C-EFFA-3EF5-855B7573FFFF}@0x2:^"/MINT-193^"", 1)
> ext("SET TEXTLINE /tbu/boot/scripts/scriptslist.txt ^"*^" -d")
> exec("/tbu/scripts/mint.sh")
> end sub
>
> mint.sh is...
>
> #! /bin/sh
> cd boot/scripts/bn
> ./bootnowu Mint-Cinn-19.3
>
>

TeraByte Support
 
Posts: 2957
Joined: Thu May 05, 2011 3:37 pm

Re: Can IFL be used to make a copy of running Linux system?

Postby Brian K » Tue Jan 21, 2020 1:08 am

TeraByte Support wrote:
> Nice, maybe add to scripting too ?
>

This works in BIU scripting...

open fs 0: 3 0x3
del file 0:\scripts\scriptslist.txt
SET TEXTLINE 0:\scripts\scriptslist.txt backup-mint.tbs
close fs 0:
exec bootnowu.efi ifl/noreboot
Brian K
 
Posts: 1763
Joined: Thu Aug 11, 2011 6:11 pm
Location: NSW, Australia

Re: Can IFL be used to make a copy of running Linux system?

Postby Brian K » Wed Jan 22, 2020 12:54 am

Other scripts that work...

open fs 0: 3 0x3
del file 0:\scripts\scriptslist.txt
SET TEXTLINE 0:\scripts\scriptslist.txt backup-mint.tbs
close fs 0:
open uefifs
boot h:\efi\boot\bootx64.efi


open fs 0: 3 0x3
del file 0:\scripts\scriptslist.txt
SET TEXTLINE 0:\scripts\scriptslist.txt backup-mint.tbs
close fs 0:
set uefi bootnext 0x0003
reboot
Brian K
 
Posts: 1763
Joined: Thu Aug 11, 2011 6:11 pm
Location: NSW, Australia

Re: Can IFL be used to make a copy of running Linux system?

Postby rushirathi » Thu Jan 23, 2020 10:20 pm

Good information.
rushirathi
 
Posts: 1
Joined: Thu Jan 23, 2020 10:18 pm


Return to Image for DOS/Linux/Windows

cron