Snapshots in /home
Snapshot is a record of the system state (in this case, the home directory of the KDM WCSS user).
Snapshots are taken regularly in the following sequences:
Snapshots allow access to older versions of data (which are captured at the time of snapshot creation), which in turn enables the recovery of deleted data.
Deleted data can be recovered if it existed in the system at the time of snapshot creation. They will have the exact form as they were at the time of the respective snapshot's creation.
Snapshots are located in hidden directories named ".snapshot"
.
They are available in the user's home directory (/home/login
) as well as in its subdirectories.
Note: Unix autocompletion does not work for the
.snapshot
directory. This means that you cannot type ".snap" and press the TAB key. The shell will behave as if the directory does not exist.
[wcss] 3107mach@bem2 ~ > ls -latr ~/.snapshot
together 304
drwxr-xr-x 86 3107mach grant126 14336 05-01 18:51 2016-05-02_0000+0200.weekly
drwxr-xr-x 75 3107mach grant126 16384 05-08 19:17 2016-05-09_0000+0200.weekly
drwxr-xr-x 76 3107mach grant126 16384 05-14 11:32 2016-05-16_0300+0200.weekly
drwxr-xr-x 76 3107mach grant126 16384 05-22 16:47 2016-05-23_0300+0200.weekly
drwxr-xr-x 76 3107mach grant126 16384 05-29 20:47 2016-05-30_0300+0200.weekly
drwxr-xr-x 76 3107mach grant126 16384 06-01 18:00 2016-06-02_0300+0200.daily
drwxr-xr-x 76 3107mach grant126 16384 06-02 16:11 2016-06-03_0300+0200.daily
drwxr-xr-x 76 3107mach grant126 16384 06-03 15:32 2016-06-05_0300+0200.daily
drwxr-xr-x 76 3107mach grant126 16384 06-03 15:32 2016-06-04_0300+0200.daily
drwxr-xr-x 76 3107mach grant126 16384 06-05 18:01 2016-06-06_0300+0200.weekly
drwxr-xr-x 76 3107mach grant126 16384 06-06 15:52 2016-06-07_0300+0200.daily
drwxr-xr-x 76 3107mach grant126 16384 06-07 17:36 2016-06-08_0900+0200.hourly
drwxr-xr-x 76 3107mach grant126 16384 06-07 17:36 2016-06-08_0300+0200.daily
drwxr-xr-x 76 3107mach grant126 16384 06-08 14:52 2016-06-08_1500+0200.hourly
drwxr-xr-x 76 3107mach grant126 16384 06-08 15:51 2016-06-09_0300+0200.daily
drwxr-xr-x 76 3107mach grant126 16384 06-08 15:51 2016-06-08_2100+0200.hourly
drwxr-xr-x 76 3107mach grant126 16384 06-09 08:47 2016-06-09_0900+0200.hourly
drwxrwxrwx 19 root root 16384 06-09 09:00 .
drwxr-xr-x 76 3107mach grant126 16384 06-09 09:16 ..
Snapshots are read-only and regular system commands can be executed on them.
To copy the file r1.inp from the subdirectory ~/test from the snapshot taken on June 9, 2016, at 9:00 AM to the current directory.
[wcss] 3107mach@bem2 ~ > cp ~/.snapshot/2016-06-09_0900+0200.hourly/test/r1.inp .