How to retrieve your corrupted or deleted /shome files

A T3 user can independently recopy its corrupted or deleted /shome files by looking into his/her own snapshots of /shome :

$ cd /mnt/t3nfs01/data01/shome/$USER/.zfs/snapshot

$ ll
total 83
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-18_03.22.00--10d <-- 10 days ago
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-19_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-20_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-21_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-22_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-23_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-24_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-25_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-26_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-27_03.22.00--10d
drwxr-xr-x 153 root root 153 May  4 17:14 zfssnap_2015-05-28_03.22.00--10d <-- yesterday 

Once inside a snapshot dir simply copy back in = /mnt/t3nfs01/data01/shome/$USER/= what you need by a cp command ( or rsync )

Edit | Attach | Watch | Print version | History: r19 | r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r9 - 2016-08-15 - FabioMartinelli
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback