GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ken23421/snapper: Manage filesystem snapshots and allow undo of system modifications

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,792 Commits
1,792 Commits

Folders and files

NameName
Last commit message
Last commit date
client
client
 
 
data
data
 
 
dbus
dbus
 
 
dists/debian
dists/debian
 
 
doc
doc
 
 
examples
examples
 
 
package
package
 
 
pam
pam
 
 
po
po
 
 
scripts
scripts
 
 
server
server
 
 
snapper
snapper
 
 
testsuite-cmp
testsuite-cmp
 
 
testsuite-real
testsuite-real
 
 
testsuite
testsuite
 
 
zypp-plugin
zypp-plugin
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.travis.debian.sh
.travis.debian.sh
 
 
.travis.fedora.sh
.travis.fedora.sh
 
 
.travis.leap.sh
.travis.leap.sh
 
 
.travis.tumbleweed.sh
.travis.tumbleweed.sh
 
 
.travis.ubuntu.sh
.travis.ubuntu.sh
 
 
.travis.yml
.travis.yml
 
 
AUTHORS
AUTHORS
 
 
COPYING
COPYING
 
 
Dockerfile.debian
Dockerfile.debian
 
 
Dockerfile.fedora
Dockerfile.fedora
 
 
Dockerfile.leap
Dockerfile.leap
 
 
Dockerfile.tumbleweed
Dockerfile.tumbleweed
 
 
Dockerfile.ubuntu
Dockerfile.ubuntu
 
 
LIBVERSION
LIBVERSION
 
 
Makefile.am
Makefile.am
 
 
Makefile.ci
Makefile.ci
 
 
Makefile.repo
Makefile.repo
 
 
README.Travis.md
README.Travis.md
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
VERSION
VERSION
 
 
configure.ac
configure.ac
 
 
snapper.spec.in
snapper.spec.in
 
 

Repository files navigation

Snapper

Build Status Coverage Status

Snapper is a tool for Linux file system snapshot management. Apart from the obvious creation and deletion of snapshots it can compare snapshots and revert differences between them. In simple terms, this allows root and non-root users to view older versions of files and revert changes.

For more information visit snapper.io.

Development

For compiling and developing Snapper you need to setup the development environment first.

Development Environment

In the SUSE Linux Enterprise and openSUSE distributions you can install the needed packages by using these commands:

# install the basic development environment (SUSE Linux Enterprise, the SDK extension is needed)
sudo zypper install -t pattern SDK-C-C++
# install the basic development environment (openSUSE)
sudo zypper install -t pattern devel_C_C++
# install the extra packages for snapper development (both SLE and openSUSE)
sudo zypper install git libmount-devel dbus-1-devel libacl-devel \
  docbook-xsl-stylesheets libxml2-devel libbtrfs-devel

Alternatively you can use a Docker container, see README.Travis.md file for some hints.

Building Snapper

You can download the sources and build Snapper by using these commands:

git clone [email protected]:<your_fork>/snapper.git
cd snapper
make -f Makefile.repo
# parallelize the build using more processors, use plain `make` if it does not work
make -j`nproc`

Installing and Running Snapper

To run the freshly built Snapper use this:

sudo make install
# kill the currently running DBus process if present
sudo killall snapperd
# try your changes (the DBus service is started automatically)
(sudo) snapper ...

Running Tests

Snapper includes some internal unit tests to avoid some bugs and regressions. The tests are located in the testsuite subdirectory and you can start them using the make check command.

There are also some additional tests in the testsuite-real subdirectory, but be careful. These tests really execute snapper commands and they can destroy your data! Run these tests only in a testing environment!

Releasing

  • Before releasing the Snapper package ensure that the changes made to the package are mentioned in the package/snapper.changes file, update also the dists/debian/changelog file.

  • Make sure the units tests still passes (see above).

  • When the version is increased then the Git repo has to be tagged, use the vX.Y.Z format for the tag. Also the filesystems:snapper OBS project has to be updated.

  • To create the package use command make package. Then use the common work-flow to submit the package to the build service. For openSUSE:Factory send at first the package to the devel project filesystems:snapper in OBS.

    Please note that this OBS project builds for more distributions so more metadata files have to be updated. See the OBS documentation for more info (cross distribution howto, Debian builds).

  • The generated bzip2 tarball has to be also placed at http://ftp.suse.com/pub/projects/snapper/.

  • When the documentation changes e.g. the man page or an important functionality then also the snapper.io web pages have to be updated. They are hosted as GitHub pages in the gh-pages branch in the Snapper Git repository.

About

Manage filesystem snapshots and allow undo of system modifications

snapper.io/

Resources

Readme
GPL-2.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.