TinyBackUp

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

A command line script to use the cpio metod to compress and extract, now it's only in italian, english and spanish i'd like to have any suggestion or help to translate it.

inameiname

8 years ago

#!/bin/bash
##Released under the BSD license
##Author dekster e-mail dekster.linux@gmail.com

clear
echo "TinyBackUp 0.2"


echo "[1] Collapse"
echo "[2] Extract"
echo "Choice: "
read CHOICE
if [ "$CHOICE" == 1 ]
then echo "Enter the absolute path of the directory to store:"
read -e BDIR
if [ -e $BDIR ]; then
echo "$BDIR directory exists!"
echo "Backup of $BDIR in progress ..."
find $BDIR | cpio -o > /home/$USER/Desktop/archive_$(date +%Y%m%d).cpio && echo "Backup was successful =D"
else echo "The $BDIR Directory does not exist!"
fi
else [ "$CHOICE" == 2 ]
echo "Enter the absolute path of the directory to extract:"
read -e EDIR
if [ -e $EDIR ]; then
echo "$EDIR directory exists!"
echo "Extraction of $EDIR in progress ..."
cpio -i < $EDIR && echo "Extraction was successful =D"
else echo "The $EDIR Directory does not exist!"
fi
fi

Report

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
0.2
updated Jan 01 2011
added Jul 26 2009
downloads 24h
0
page views 24h 1
System Tags addon