User contributions for Bacchas
Jump to navigation
Jump to search
- 15:48, 15 June 2023 diff hist +90 Make copy of file and copy to Server
- 15:45, 15 June 2023 diff hist +28 Make copy of file and copy to Server
- 15:44, 15 June 2023 diff hist +10 Make copy of file and copy to Server
- 15:43, 15 June 2023 diff hist +5 Make copy of file and copy to Server
- 15:42, 15 June 2023 diff hist +1,371 Make copy of file and copy to Server
- 15:37, 15 June 2023 diff hist +304 Make copy of file and copy to Server
- 15:07, 15 June 2023 diff hist +354 Make copy of file and copy to Server
- 15:06, 15 June 2023 diff hist +45 Make copy of file and copy to Server
- 15:05, 15 June 2023 diff hist +875 N Make copy of file and copy to Server Created page with " <pre> #!/bin/bash clear echo -e " +++++ Making a backup copy of sql file in the web folder ++++++++++++++++ \n" ansible-playbook /etc/ansible/playbook/backupsqlfirst.yml sleep 5 echo -e "++++++++++ Copying to local web folder ++++++++++++++ \n" ansible-playbook /etc/ansible/playbook/cplocal.yml sleep 5 ansible-playbook /etc/ansible/playbook/copytorb222.yml --private-key ~/.ssh/ansible echo "+++++ Done ++++++" </pre> <h4 class="bluebackground">backup..."
- 14:54, 15 June 2023 diff hist +45 Scripts used on Servers current
- 14:52, 15 June 2023 diff hist +81 Download backup file from remote and copy to Synology current
- 14:51, 15 June 2023 diff hist −2 Download backup file from remote and copy to Synology
- 14:50, 15 June 2023 diff hist −15 Download backup file from remote and copy to Synology
- 14:49, 15 June 2023 diff hist +714 N Download backup file from remote and copy to Synology Created page with "<h4> NOTE: File must already exist and you must know the exact filename that is being downloaded</h4> <h4 class="yellowbackground">opidwnlfromremotetolocal.sh</h4> <pre> #!/bin/bash d=`date +%Y%m%d` n="opilocal-" e=".jpa" name=$n$d$e #dest='/volume1/Linode/' scp -i ~/.ssh/linode 173.255.229.40:/var/www/html/opilocal/akbackup/$name . echo "+++++++++ done copying form Remoge ++++++++++++++++++" sleep 3 scp -i ~/.ssh/synology $name admin@192.168.20.120:/volume1/Linode/op..."
- 14:32, 15 June 2023 diff hist +62 Scripts used on Servers
- 14:10, 15 June 2023 diff hist +41 Backup html folder, backup SQL Database and download locally current
- 14:05, 15 June 2023 diff hist +41 Backup html folder, backup SQL Database and download locally
- 14:03, 15 June 2023 diff hist −143 Backup html folder, backup SQL Database and download locally
- 13:56, 15 June 2023 diff hist +923 Backup html folder, backup SQL Database and download locally
- 13:47, 15 June 2023 diff hist +422 Backup html folder, backup SQL Database and download locally
- 13:42, 15 June 2023 diff hist −1 Backup html folder, backup SQL Database and download locally
- 13:41, 15 June 2023 diff hist −83 Backup html folder, backup SQL Database and download locally
- 13:40, 15 June 2023 diff hist −117 Backup html folder, backup SQL Database and download locally
- 13:38, 15 June 2023 diff hist +1,080 Backup html folder, backup SQL Database and download locally
- 13:33, 15 June 2023 diff hist +64 Backup html folder, backup SQL Database and download locally
- 13:31, 15 June 2023 diff hist +1 Backup html folder, backup SQL Database and download locally
- 13:31, 15 June 2023 diff hist 0 Backup html folder, backup SQL Database and download locally
- 13:30, 15 June 2023 diff hist +32 Backup html folder, backup SQL Database and download locally
- 13:28, 15 June 2023 diff hist +455 Backup html folder, backup SQL Database and download locally
- 13:27, 15 June 2023 diff hist +716 N Backup html folder, backup SQL Database and download locally Created page with "==Master Script== <pre> echo "-----------------------------------" echo "" echo "++++++++++ Running backup script, zipping dir and dump sql database ++++++++++" echo "" clientscripts/./client_run_backup_sql_zip.sh sleep 5 echo "-----------------------------------" echo "" echo "++++++++++ Download zip and sql files and copy to synology ++++++++++" echo "" echo "" clientscripts/./client_dlzipsql_cpto_synology.sh sleep 5 echo "-----------------------------------" echo ""..."
- 13:26, 15 June 2023 diff hist +4 Scripts used on Servers
- 13:26, 15 June 2023 diff hist +64 N Scripts used on Servers Created page with "Backup html folder, backup SQL Database and download locally"
- 13:22, 15 June 2023 diff hist +15 Bash current
- 16:27, 14 June 2023 diff hist +723 Python Copying File and Directories current
- 16:14, 14 June 2023 diff hist −2 Python Copying File and Directories →Move similar files to another folder
- 15:45, 14 June 2023 diff hist −6 Python Copying File and Directories
- 15:45, 14 June 2023 diff hist +1,085 Python Copying File and Directories
- 15:43, 14 June 2023 diff hist +482 Python Copying File and Directories
- 19:52, 26 April 2023 diff hist +895 N Create a Django App Created page with " python manage.py startapp myapp * this will create an new app in the projectname folder * cd into my app folder and create a folder called templates * create an html file in the templates folder * Link the new template folder to the project * edit the settings.py file import os * Scroll down to "TEMPLATES", edit section DIRS 'DIRS': [os.path.join(BASE_DIR, "myapp/templates")] * Edit the views.py in your myapp folder def myview(request): return render(request,..." current
- 19:51, 26 April 2023 diff hist −865 Django Replaced content with "==Create a new project== == Create a Django App == === Category===" current Tag: Replaced
- 19:51, 26 April 2023 diff hist +3 Create a new project current
- 19:51, 26 April 2023 diff hist +25 Create a new project
- 19:50, 26 April 2023 diff hist +275 N Create a new project Created page with "* First create a main dir django etc.. * cd into directory django-admin startproject projectname * this will create the projectname within the main directory * cd into directory python manage.py runserver * To specify a different port python manage.py runserver 8080"
- 19:50, 26 April 2023 diff hist −272 Django
- 19:49, 26 April 2023 diff hist +237 Django
- 17:29, 26 April 2023 diff hist −1 Django
- 17:29, 26 April 2023 diff hist +247 Django
- 17:21, 26 April 2023 diff hist +413 Django
- 17:02, 26 April 2023 diff hist +114 Django
- 16:40, 26 April 2023 diff hist +33 Django