Skip to content

Instantly share code, notes, and snippets.

@weshayutin
Last active May 3, 2023 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weshayutin/5707719e7e79113c790b556b9e331b14 to your computer and use it in GitHub Desktop.
Save weshayutin/5707719e7e79113c790b556b9e331b14 to your computer and use it in GitHub Desktop.

all restores from the same backup

restore #1

~ $ ls /mnt/volume1/
1683140886.txt  1683148730.txt  backup1         lost+found
~ $ ls /mnt/volume2
1683140886.txt  1683148730.txt  backup1         backup2         lost+found
~ $ ls /mnt/volume3
1683140886.txt  1683148730.txt  backup1         backup2         lost+found
~ $ ls /mnt/volume4
1683140886.txt  1683148730.txt  backup1         backup2         lost+found
~ $ ls /mnt/volume3
1683140886.txt  1683148730.txt  backup1         backup2         lost+found
~ $ ls /mnt/volume4
1683140886.txt  1683148730.txt  backup1         backup2         lost+found
~ $ ls /mnt/volume5
1683140886.txt  1683148730.txt  backup1         lost+found
~ $ ls /mnt/volume6
1683140886.txt  1683148730.txt  backup1         backup2         lost+found
~ $ ls /mnt/volume7
1683140886.txt  1683148730.txt  backup1         backup2         lost+found
~ $ ls /mnt/volume8
1683140886.txt  1683148730.txt  backup1         lost+found
~ $ 

restore 2

/mnt $ for i in `ls`; do echo $i; ls $i;done
volume1
1683140886.txt  1683149927.txt  backup1         lost+found
volume2
1683140886.txt  1683149927.txt  backup1         lost+found
volume3
1683140886.txt  1683149927.txt  backup1         backup2         lost+found
volume4
1683140886.txt  1683149927.txt  backup1         lost+found
volume5
1683140886.txt  1683149927.txt  backup1         lost+found
volume6
1683140886.txt  1683149927.txt  backup1         lost+found
volume7
1683140886.txt  1683149927.txt  backup1         lost+found
volume8
1683140886.txt  1683149927.txt  backup1         backup2         lost+found

restore 3

~ $ cd /mnt
/mnt $ for i in `ls`;do echo $i; ls $i; done
volume1
1683140886.txt  1683150833.txt  backup1         lost+found
volume2
1683140886.txt  1683150833.txt  backup1         lost+found
volume3
1683140886.txt  1683150833.txt  backup1         backup2         lost+found
volume4
1683140886.txt  1683150833.txt  backup1         backup2         lost+found
volume5
1683140886.txt  1683150833.txt  backup1         lost+found
volume6
1683140886.txt  1683150833.txt  backup1         backup2         lost+found
volume7
1683140886.txt  1683150833.txt  backup1         lost+found
volume8
1683140886.txt  1683150833.txt  backup1         lost+found
/mnt $ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment