Skip to content

prashantacharya/code-backup-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code Backup Bash Script

The project is a bash script that creates a zip backup of a node project. It deletes node_modules, .git, .env, .vs.

Setup

# clone this repo
git clone https://github.com/prashantacharya/code-backup-script.git

# Navigate inside the directory
cd code-backup-script

# Copy the script to usr/bin
cp backup.sh /usr/bin/backup-code

# Give executable permission to the script
chmod a+x /usr/bin/backup-code


# we can use backup-code command on our terminal after this

Usage

backup-code project_directory_name backup_file_name

# Example
backup-code test_folder test
# test.zip will be created

Usage Example

Note: If backup file name is not supplied, the backup file name will have a default name in the format project_directory_name-date.zip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages