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

User discussion and information resource forum for Image products.
Post Reply
eoa
Posts: 4
Joined: Tue Mar 13, 2018 9:30 pm

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

Post by eoa »

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: 3613
Joined: Thu May 05, 2011 10:37 pm

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

Post by TeraByte Support »

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
>
>

Brian K
Posts: 2221
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

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

Post by Brian K »

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: 3613
Joined: Thu May 05, 2011 10:37 pm

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

Post by TeraByte Support »

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?
>
>

Brian K
Posts: 2221
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

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

Post by Brian K »

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: 3613
Joined: Thu May 05, 2011 10:37 pm

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

Post by TeraByte Support »

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
>
>

Brian K
Posts: 2221
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

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

Post by Brian K »

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: 2221
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

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

Post by Brian K »

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
rushirathi
Posts: 1
Joined: Fri Jan 24, 2020 5:18 am

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

Post by rushirathi »

Good information.
Post Reply