Git Product home page Git Product logo

backup-2-pendrive's Introduction

Backup to Pen Drive

To send data from your server to a pen drive using the terminal, you can follow these steps:

1. Plug in your pen drive

2. Identify the pen drive

Use the lsblk or fdisk command to identify your pen drive. The output will show a list of storage devices along with their mount points. Your pen drive will typically be listed as /dev/sdb1, /dev/sdc1, etc. depending on the number of storage devices connected to your server.

lsblk

or

sudo fdisk -l

3. Mount the pen drive

If your pen drive is not automatically mounted, you will need to manually mount it. First, create a mount point. This is a directory where your pen drive will be mounted:

sudo mkdir /mnt/usb

Then, mount the pen drive to the directory you just created. Replace /dev/sdb1 with the path that corresponds to your pen drive:

sudo mount /dev/sdb1 /mnt/usb

4. Transfer the data

Now you can transfer data from your server to the pen drive. Use the cp command to copy files or directories. Replace /path/to/your/data with the path to the data you want to copy:

sudo cp /path/to/your/data /mnt/usb

5. Check the data

You can check if the data has been successfully copied:

ls /mnt/usb

6. Safely remove the pen drive

Before physically removing the pen drive, it's important to unmount it safely to prevent data corruption:

sudo umount /mnt/usb

Now, you can safely remove the pen drive from your server.

backup-2-pendrive's People

Contributors

chmodshubham 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.