Wednesday, 4 June 2025

flexbackup

https://manpages.ubuntu.com/manpages/jammy/man1/flexbackup.1.html
perl based backup: configure /etc/flexbackup.conf

  • flexbackup [...] -level <0-9 | full | differential | incremental> Change  backup level to a number "0-9", or one of the symbolic names: "full" (level 0); "differential" (level 1); "incremental" (previous backup level + 1).
    • eg backup: flexbackup -set set1 full (or)
    • eg backup: flexbackup -set set1 differential
    • eg backup: flexbackup -set set1 incremental (or)
  • list: flexbackup -list home-stansoft.0.202402071723.tar.gz
  • extract: mkdir restore;cd restore; flexbackup -extract  ../home-stansoft.0.202402071723.tar.gz
  • extract one file: flexbackup -extract -onefile <filename>
    • Extract  (restore)  the  single  file  named  "filename"  into your current working directory.
      • eg: flexbackup -extract ../home-username.2.afio-gz -onefile *rdp.sh (need to use asterix. Don't put . in onefile)
      • eg: flexbackup -extract ../home-username.9.afio-gz -onefile *dger/*plot/nifty_wsj* (need to use asterix. Don't put . in onefile)
      • eg: flexbackup -extract /home/backups/flexbackup/home-username-Documents.0.202402071828.tar.gz -onefile "SystemPc.pdf"
encryption (https://github.com/2sh/aes-pipe)
  • Create key:
    • head -c 3705 /dev/random | uuencode -m - | head -n 66 | tail -n 65 | gpg --symmetric -a > /home/backups/flexbackup/encryptionkey.gpg
  • Encrypt backup:
    • cat /home/backups/flexbackup/etc.4.afio-gz | aespipe  -K /home/backups/flexbackup/encryptionkey.gpg > /home/backups/flexbackup/etc.4.afio-gz.aes
  • Decrypt backup:
    • aespipe -d -K /home/backups/flexbackup/encryptionkey.gpg < /home/backups/flexbackup/etc.4.afio-gz.aes | afio -t -

TermRecord

TermRecord is a simple terminal session recorder with easy-to-share self-contained HTML output! TermRecord -o /tmp/session.html