Git Product home page Git Product logo

apt-clone's Introduction

Build Status

apt-clone

apt-clone lets you create "state" files of all installed packages for your Debian/Ubuntu systems that can be restored on freshly installed systems (or containers) or into a directory.

Use cases:

  • clone server package selection and restore on fallback system
  • backup system state to be able to restore in case of emergency

Usage

Create a clone (apt state backup)

$ sudo apt-clone clone ~/myhost

will create an ~/myhost.apt-clone.tar.gz.

Get info about the clone

$ apt-clone info ~/myhost.apt-clone.tar.gz
Hostname: top
Arch: amd64
Distro: wily
Meta: ubuntu-desktop
Installed: 3308 pkgs (1469 automatic)
Date: Fri Nov  6 23:06:35 2015

Restore the clone

The restore will override your existing /etc/apt/sources.list and will install/remove packages. So be careful!

$ sudo apt-clone restore ~/myhost.apt-clone.tar.gz Note that you can give the option --destination /some/dir and it wil debootstrap the clone into this directory.

apt-clone's People

Contributors

mvo5 avatar murraybd avatar cjwatson avatar alessio avatar stgraber avatar vorlonofportland avatar benwiederhake avatar jelmer avatar lucaskanashiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.