#!/bin/bash
# - bof - #



<<'comment'
  Development in progress.
  See instructions below for ubuntu & arch installations.
comment



Opt=$1;
if [ "$Opt" == "" ]; then
    Opt=1; fi;

Dir_=($PWD);
sTs_="timeshift";



<<'comment'

# -  - #
# - Ubuntu - #


# -  - #
# - Arch - #




  # -  - #
  # - TimeShift configuration - #

  sudo timeshift --list;
  sudo timeshift --list-devices;

  sudo timeshift --create --comments "First backup with timeshift."
  sudo timeshift --create --comments "[2025-05-20] Start of time" --tags D;

  sudo su;
  echo "export EDITOR=nvim" >> .bashrc;
  source .bashrc;
  systemctl edit --full grub-btrfsd;

  ExecStart=/usr/bin/grub-btrfsd --syslog -t

  grub-mkconfig -o /boot/grub/grub.cfg;
  sudo grub-mkconfig -o /boot/grub/grub.cfg;
comment





# :1
# -  - #
# - Backup & Restore - #


# :1.a
# -  - #
# - root (/) backup - #

sudo timeshift --create --comments "First backup with timeshift."
sudo timeshift --create --comments "[2025-05-20] Start of time" --tags D;


# :1.b
# -  - #
# - Restore - #
# - Restore from root (/) backup - #
sudo timeshift --list;
sudo timeshift --list-devices;

sudo timeshift --restore;






# -  - #
# - Fedora - #




# :1
# -  - #
# - flatPak - #




# :2
# -  - #
# - Youtube Documentation - #



# :3
# -  - #
# - Installation - #


# :3.1
# -  - #
# - Ubuntu - #

# :3.1.1
# -  - #
# - Installing dependencies - #



# :3.1.2
# -  - #
# - Install wezterm  - #

comment









rm -rf ~/timeShift.sh;
echo -e "\nThe system has to reboot in order to show changes ...\n\n\n";
sleep 10;
#sudo reboot now;



# - eof - #