bbprofile Backup Browser Profile
Posted: 18 Sep 2021, 09:39
I suspect it would be in here:
Code: Select all
/home/guest/.config/microsoft-edge-beta/Default
Code: Select all
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Local State
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/BrowserMetrics/BrowserMetrics-61464C34-11C4.pma
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Preferences
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Network Persistent State
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/load_statistics.db-wal
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/WebAssistDatabase-journal
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/WebAssistDatabase
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Network Action Predictor-journal
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Network Action Predictor
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Session Storage/000003.log
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Cookies-journal
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Cookies
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Sessions/Session_13276470584884629
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Favicons-journal
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Favicons
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/History-journal
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/History
/mnt/live/memory/changes/home/guest/.config/microsoft-edge-beta/Default/Visited Links
Code: Select all
firefox/t4nfe2m4.default-release/weave/toFetch/
firefox/t4nfe2m4.default-release/weave/toFetch/tabs.json
systemextensionsdev/
sent 41,452,388 bytes received 1,206 bytes 82,907,188.00 bytes/sec
total size is 41,437,337 speedup is 1.00
mksquashfs: Compressor "zstd" is not supported!
mksquashfs: Compressors available:
gzip
lzma
lzo
xz (default)
mv: cannot stat '/tmp/tmp.goq613/009-profile-firefox-20210919-0111.xzm': No such file or directory
Your profile module is saved in /home/guest/Desktop/009-profile-firefox-20210919-0111.xzm
Would you like to copy it into your /mnt/sda1/Porteus4//porteus/modules folder? [y/n] y
cp: cannot stat '/home/guest/Desktop/009-profile-firefox-20210919-0111.xzm': No such file or directory
Module copied and ready to be activated at next boot
Code: Select all
guest@porteus:~$ ./bbprofile.sh
Usage: bbprofile.sh <browser>
Supported Browsers:
-f (firefox)
-o (opera)
-v (vilvaldi)
-u (chromium)
-c (chrome)
guest@porteus:~$ -f
bash: -f: command not found
guest@porteus:~$
Code: Select all
guest@porteus:~$ ./bbprofile.sh -f
Exclude caches, backups, storage and reports (crashes,dumps...) ? [y/n] y
building file list ... done
./
:
:
Your profile module is saved in /home/guest/Desktop/009-profile-firefox-20210919-0044.xzm
Would you like to copy it into your /mnt/isoloop/porteus/modules folder? [y/n] n
Module not copied in /mnt/isoloop/porteus/modules
guest@porteus:~$
guest@porteus:~$ ls -lh $HOME/Desktop/*.xzm
-rw-r--r-- 1 guest users 11M Sep 19 00:44 /home/guest/Desktop/009-profile-firefox-20210919-0044.xzm
guest@porteus:~$
Ok, sorry. I know what it is... I'm forcing to use zstd as the compression method to build up the .xzm module.
Code: Select all
mksquashfs $target/home $target/$profile -b 1M -comp zstd -b 1M -Xcompression-level 22 -noappend -keep-as-directory
Code: Select all
dir2xzm $target/home $target/$profile
Code: Select all
firefox/t4nfe2m4.default-release/weave/toFetch/
firefox/t4nfe2m4.default-release/weave/toFetch/tabs.json
systemextensionsdev/
sent 50,180,324 bytes received 1,272 bytes 33,454,397.33 bytes/sec
total size is 50,162,660 speedup is 1.00
bbprofile_2.sh: line 34: dirtoxzm: command not found
mv: cannot stat '/tmp/tmp.vLdkg7/009-profile-firefox-20210920-1309.xzm': No such file or directory
Your profile module is saved in /home/guest/Desktop/009-profile-firefox-20210920-1309.xzm
Would you like to copy it into your /mnt/sda1/Porteus4//porteus/modules folder? [y/n] y
cp: cannot stat '/home/guest/Desktop/009-profile-firefox-20210920-1309.xzm': No such file or directory
Module copied and ready to be activated at next boot
Code: Select all
root@porteus:/home/guest# dirtoxzm
bash: dirtoxzm: command not found
Code: Select all
mksquashfs $target/home $target/$profile -b 256K -comp xz -Xbcj x86 -noappend -keep-as-directory
Juste this error with this one:dir2xzm $target/home $target/$profile
Code: Select all
rsync: delete_file: rmdir(home/guest) failed: Permission denied (13)
cannot delete non-empty directory: home
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
No error message heremksquashfs $target/home $target/$profile -b 256K -comp xz -Xbcj x86 -noappend -keep-as-directory
Perhaps you aborted the process and then resumed??? Both commands do the same if you use Porteus.
- the script ask me a password (root)dir2xzm $target/home $target/$profile
This one is ok - can boot with itmksquashfs $target/home $target/$profile -b 256K -comp xz -Xbcj x86 -noappend -keep-as-directory
Code: Select all
#mksquashfs $target/home $target/$profile -b 1M -comp zstd -b 1M -Xcompression-level 22 -noappend -keep-as-directory
#dirtoxzm $target/home $target/$profile
dir2xzm $target/home $target/$profile
#mksquashfs $target/home $target/$profile -b 256K -comp xz -Xbcj x86 -noappend -keep-as-directory
Code: Select all
guest@porteus:/mnt/sda1/Iso_linux/Modules/sessions$ dir2xzm
readlink: missing operand
Try 'readlink --help' for more information.
readlink: missing operand
Try 'readlink --help' for more information.
glibtop(c=1651): [DEBUG] open.c:53 glibtop_open_l(): SIZEOF: 40 - 65648 - 248 - 65624 - 224 - 65624
glibtop(c=1651): [DEBUG] open.c:163 glibtop_open_l(): Calling sysdeps open function.
glibtop(c=1651): [DEBUG] init.c:229 glibtop_init_s(): init_s with features=0x7ffffff and flags=0
readlink: missing operand
Try 'readlink --help' for more information.
readlink: missing operand
Try 'readlink --help' for more information.
Convert directory tree into .xzm compressed module
usage: /opt/porteus-scripts/dir2xzm source_directory output_file.xzm