Code Monkey home page Code Monkey logo

snapmagic's Introduction


During my OSCP course times I've break system and took my time to recover. After I search Google, I couldn't find any good tool that automates this process so here is a simple tool that will help you to not lose your VirtualBox states and save your time.

Daily Snapshot Automation for VirtualBox

This PowerShell script automates the creation of daily backups for a VirtualBox VM, removing older snapshots to conserve space, and ensuring that only snapshots with the name format "DailyBackup_" are deleted if they are older than 2 days.

Requirements

  • Windows operating system
  • VirtualBox installed
  • PowerShell

Usage

  1. Download or clone the repository to your Windows Desktop.
  2. Edit the DailySnapshot.ps1 file:
    • Replace $VMName with your virtual machine's name.
    • Update $VBoxManagePath with the correct path to VBoxManage.exe if it's different on your system.
  3. Run the script:
    .\DailySnapshot.ps1

If you want to schedule the script to run daily, follow these steps:

  1. Open Task Scheduler.
  2. Import the DailySnap.xml file included in the repository:
    • Right-click on "Task Scheduler Library" and select "Import Task..."
    • Browse to the location of the DailySnap.xml file and select it.
    • Click "Open" to import the task.

snapmagic's People

Contributors

un5t48l3 avatar

Stargazers

 avatar

Watchers

 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.