In computer systems, a snapshot is the state of a system at a particular point in time. Snappy is a command line tool for linux file system that supports snapshot management. It provides user various functionalities to create,delete and manage the snapshots of the directories. For more information refer : Report.
- Clone the repository
- Inside Local Repository Run
$ make snap
-
help: show supported commands and their usage
- Usage:
$ snappy help
- Usage:
-
create: create snapshot of the input directory, optional flag -d to add description
- Usage:
$ snappy create [Directory] - Usage:
$ snappy create [Directory] -d [Description]
- Usage:
-
revert: revert to some older version
- Usage:
$ snappy revert [Directory] [SnapNum]
- Usage:
-
cleanup: remove all the snapshots and store the snapshot of the latest version
- Usage:
$ snappy cleanup [Directory]
- Usage:
-
compare: lists the difference between the contents of folder/files
- Usage:
$ snappy compare [SnapNum1] [SnapNum2] [Directory]
- Usage:
-
status: lists out the modified or added file in 2 folders, flag -i for including identical files
- Usage:
$ snappy status -i(optional) [SnapNum1] [SnapNum2] [Directory]
- Usage:
-
delete: delete a specific snap of a directory
- Usage:
$ snappy delete [Snap_Number] [Directory]
- Usage:
-
listsnap: list out the snapshots taken of the directory
- Usage:
$ snappy listsnap [Directory]
- Usage:
-
logsnap: displays the changes done to the directory
- Usage:
$ snappy logsnap [Directory]
- Usage:
-
desc: attach a description to a snapshot
- Usage:
$ snappy desc [SnapNum] [Directory] [Description]
- Usage:
Aishna Agrawal | Janvi Thakkar | Mihir Jain | Priyam Tongia