Skip to content

This repo hold a Linux and System Admins docs and scripts to be guide for us.

Notifications You must be signed in to change notification settings

nkuweb/LinuxScriptsAndDocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYSADMIN and LINUX USERS DOCS AND SCRIPTS REPO

This repo has ready to use code for server management with Fabric

CODE SERVICES:

  • backup_host(for centos)

  • awake_apache(for centos)

  • db_awake(mysql)

  • setup docker

  • mongodb

  • NOTICE : Os-detector,More-Db-Options,More Details,Monitoring ... will be add.

$ git clone https://github.com/nkudatascience/LinuxScriptsAndDocs
$ cd LinuxScriptsAndDocs
$ pip install -r requirements.txt
$ cd fabric
$ fab -H [SERVER_IP] [code_service]

MONGODB

For get the backup of your db is simple. sh $ mongodump --db [DB_NAME] --port [PORT_NAME] For restore this backup sh $ mongorestore -d [DB_NAME] -c [COLLECTION_NAME] [DUMP_FILE.bson]

About

This repo hold a Linux and System Admins docs and scripts to be guide for us.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published