Hello I'm doing a script for doing backups but i can only backup directories from / any other files for example /etc/X11 cannot be backed up. how do i solve this?
this is the code i'm using now:
#!/bin/bash
clear
read -p "Enter the directory to backup:" DIRECTORY
echo
echo "backing up $DIRECTORY"
Hi all,
I have a simple script, which for sure i need to enhance more and more. For now, it is just making a compress file in tar.gz format in output dir.
Here is script:
Quote:
#!/bin/bash
#Defines output file
OUTPUT=/Documents/backup_$(date +%Y%m%d%H%M%S).tar.gz
#Defines directory to backup
I had allot of help with the below script, and its been a long time since i've done anything with shell scripts so I am having some trouble.
I am trying to zip the trace folder after it is copied and dated but i'm unsure of how to tell it to zip this new folder without knowing what it will be named.
The script works fine as it is now but when it goes to remove the oldest backup it takes fore
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations.
I'm trying to setup a backup script on Ubuntu. Every day I want to copy my local source directory to a backup directory on a remote server uniquely named with the date. (e.g., backup-jan1/, backup-jan2/, etc) It should store a mirror of the earliest state and use difference files to recreate the new backup points.
This is pretty simple with rsync.
I want to make a backup script, that makes a .tar.gz of a folder I define, say fx /root/tekkit/world
This .tar.gz file should then be uploaded to a FTP server, named by the time it was uploaded, for example: 07-10-2012-13-00.tar.gz
How should such backup script be written?
I already figured out the .tar.gz part - just need the naming and the uploading to FTP.
I know that FTP is not the most
I have a short list of files and directories of which I would like to make a flat copy using ditto in a bash shell. There are approximately 8-10 files and/or directories that need to be copied.
Running Ubuntu 12.04
I have a library of personal files and documents stored in Dropbox. I want the Dropbox folder to be automatically mirrored to a directory in the local machine, as a backup to the backup. I want it to be done automatically.
Hi,
I'm running a shell script to do a daily backup of my mysql database. The backup is done using:
Code:
mysqldump db1 > db1.sql --user=rootuser --password=rootpassword && mysqldump db2 > db2.sql --user=rootuser --password=rootpassword
This file is saved in my root directory replacing the old/exisiting backups.