Page 1 of 1

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

Posted: Fri Jan 03, 2020 1:52 am
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

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

Posted: Fri Jan 03, 2020 2:59 am
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
>
>


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

Posted: Fri Jan 17, 2020 9:01 pm
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?

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

Posted: Sat Jan 18, 2020 5:06 pm
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?
>
>


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

Posted: Sun Jan 19, 2020 10:56 pm
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

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

Posted: Tue Jan 21, 2020 3:46 am
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
>
>


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

Posted: Tue Jan 21, 2020 8:08 am
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

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

Posted: Wed Jan 22, 2020 7:54 am
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

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

Posted: Fri Jan 24, 2020 5:20 am
by rushirathi
Good information.