1
vote
2answers
41 views

Which user should cron jobs run as?

Ubuntu server with users root www-data mywebsite1 mywebsite2 There are multiple websites hosted on this server, each with their own user. Each website has their own cron jobs mostly ...
-1
votes
2answers
55 views

Cron to do a backup and automatically send it to dropbox [closed]

Is there a way to send backups to Dropbox (tar & send)? I bought a plan there and was thinking to save some money dropping Amazon S3 (that I'm using for backups). I'll have to manually delete old ...
0
votes
2answers
35 views

crontab -u admin -l doesn't list cronjobs that are defined in directadmin backup crons as admin user

I have defined 1 cron job to take a backup of all of my users in Directadmin. Some users needed more than just one monthly backup. So I logged in again as admin user and went to Admin Backup/Transfer ...
0
votes
0answers
18 views

Cron jobs to backup from selected user(s) are not listed in Admin Backup/Transfer list

I have selected some users to be backed up using directadmin's Admin Backup/Transfer tool. If I would select all users, it would list the cron jobs at the bottom of the page. But now it doesn't list ...
1
vote
2answers
51 views

Checking whether there are any cronjobs currently running

I'm running a webserver in a VM. In order to create consistent backups, I have to stop Apache, MySQL and other processes for a short time before doing a snapshot of the VM's harddrive (LVM-based). ...
0
votes
1answer
71 views

what does the --backup-mode option for rdiff mean?

I've got rdiff-backup up & running nicely using cron jobs over SSH between two VMs (my webserver and a backup space), using scripts put together from various places online. I'm backing up various ...
3
votes
3answers
156 views

Setting up logging for a remote backup script

So I wrote up a short script that I am planning to run via a cron job daily to package up my site files and send them to a remote location. I also plan to incorporate DB dumps, but I have not gotten ...
2
votes
3answers
469 views

Amazon EC2 EBS volume scheduled backup/snapshots using puppet / similar tools

I am not a Linux admin, although I wish I was, and I have seen these questions Amazon EC2 Backup Strategy Amazon EC2 + EBS:: Regular backup plan? Simple Backup Strategy for Amazon EC2 instances / ...
1
vote
3answers
252 views

Make cron log rsync only if there was transfer

I have this crontab running every 5 minutes: date >> ~/18/rsync.log rsync -vaz user@r18:~/assets ~/18 >> ~/18/rsync.log 2>&1 It adds this to the log file every 5 minutes: Thu ...
1
vote
2answers
102 views

Run command to untar file in timestamped folder?

I have a .tar file that is transferred to our server every night by one of our client management systems. The file is a compressed .sql file which I need to uncompress and dump into our database. The ...
2
votes
3answers
240 views

fastest way to backup webserver files and mysql db and automate

I would like to setup a cron job for to backup all my web server files to a compressed file and also my MYSQL db. I have full acces to my server as it is a VPS. I am a noob at linux and could really ...
0
votes
1answer
457 views

Cron job failing to backing up a Postgres database

I'm unsure what's going on here: I've got a backup script which runs fine under root. It produces a >300kb database dump in the proper directory. When running it as a cron job with exactly the same ...
3
votes
4answers
112 views

`find` command not available in web host, how to implement a delete based on modification time using other commands?

I'm creating a simple datebase backup solution for a client using web hosting at DataFlame. The web hosting account provides access to cron but not a shell. I have a database backup script creating ...
0
votes
2answers
288 views

How can I make monthly backups (with dated file names) using Cron on Debian?

I'm having trouble adding the date to the backup file's filename. Here's the Cron command (for testing): */2 * * * tar -zcf /var/backups/www-(back tick)date +%Y%m%d(back tick).tgz /var/www/ It should ...
1
vote
7answers
389 views

mysql database daily backup on ubuntu server

I use crontab -e in ubuntu server for running a backup.sh file every night at 02:00 AM. I wrote: 00 02 * * * root /home/backup.sh Then /etc/init.d/cron restart When do crontab -l it shows:00 02 * * * ...
0
votes
1answer
110 views

Assistance with a backup solution.

I am currently needing to create a backup of something on my server. I zip the entire folder and it's about 1.5gb big...it has to be backed up every hour.... Alright so the size of the backup is ...
0
votes
2answers
109 views

Creating a backup script involving screens and java?

Hi guys I use centOS 64bit 5.7 and I need to create a backup script What I want it to do: screen -r example command into java pause for x amount of seconds exit screen zip/rar a folder which and ...
4
votes
2answers
1k views

How To Backup “crontab -e” Files?

I want to do a complete server backup. I already have my backup script copying all of the html/php files for the web app, and the mysql databases, placing them into a .tar.gz file. How can I add the ...
2
votes
2answers
611 views

How to dump a mysql database and transfer to remote ftp in one line -for crontab-?

I need to do a weekly backup of a mySQL table and then transfer it to a remote machine using ftp. This is the command I have now in crontab: 0 18 * * 1 /usr/bin/mysqldump --add-drop-table ...
2
votes
3answers
372 views

Why does my backup script work when I run it, but not when it's run via cron?

This is my script, backup_mongo.sh #!/bin/bash suffix=$(date +%w) rm /home/myuser/backup/mongo-$suffix -rf mkdir /home/myuser/backup/mongo-$suffix mongodump -h$1 -u$2 -p$3 -dmydb ...
0
votes
0answers
107 views

Simple bash backup solution

I have a very limited experience with shell scripting and would like to put in place some sort of script that backs up my blog (Wordpress) on a weekly basis. Here is what I have so far #!/bin/bash ...
1
vote
2answers
57 views

My server goes offline for some minutes after the backup cron job

Every day I m running my daily cron backup, I noticed that at the end of the backup procedure my server goes offline for about 2 minutes. This happens every day. Server details: Intel® Core™ i7-920 ...
1
vote
2answers
447 views

Autorotating Incremental/incremental backups with cron

i need a backup script (or tool) for my Ubuntu Server. Simple packing a folder into a tar.gz cron.d is quite easy to do. But the problem is, with every update there are several 100 MB of data. So I ...
0
votes
3answers
716 views

Making a simple MySQL backup script to be run via cron, having permissions issues

This is a very basic mysqldump script that will do a dump and store it locally. Running mysqldump by itself works fine as does gzip (i.e. they are where they need to be in my path) ...
0
votes
2answers
397 views

Why can my cron job not find a specific command?

I am using duplicity to create nightly backups of my server over FTP. I wrote a script that does both a local and remote backup and logs the output results. When I run this script as the root user, ...
0
votes
5answers
129 views

Automatic Offsite Backups

I run a website which currently hosts approximately 300GB (over 1000 files) of training videos on a shared hosting provider. We increase that by ~50 video files per month (~20GB). Currently our ...
0
votes
1answer
230 views

How to create daily backup and hourly differentials with easy restore?

I need to create a daily full backup (snapshot) of a directory tree + hourly differentials. A developer who has only sftp access needs to be able to restore from the backups and hence a solution such ...
1
vote
1answer
602 views

MySQL equivalent to .pgpass, or automatic authentication in a cron job for mySQL

I'm writing a bash script to back up my databases. Most are postgresql, and in postgres there's a way to avoid having to authenticate by creating a ~/.pgpass file which contains the postgres password. ...
1
vote
2answers
214 views

Automating a multi-tape cpio backup

Currently, I have a simple backup process in which a script is run daily via cron. If there's a tape in the drive, it will use cpio to backup critical files, with a full system backup done once a ...
2
votes
4answers
642 views

cron script for scheduled backups

i am looking for a cron script which can do some backups. im mostly a web developer so am kind of newbish with bash/cron stuff. i want cron will copy all the files or directories in a "filelist.txt" ...
3
votes
3answers
139 views

Why is my script dying when run through cron?

everybody! Maybe you can help me with this: I have set up my daily backup rotation in Cron to run every day at 4 am. The script is not complicated (see below), and when I execute it myself it works ...
0
votes
1answer
605 views

Rackspace Cloud API

I am creating bash script to store backup files on Rackspace (mosso). For now i am done with uploading and deleting files from containers. Next step is to remove files older than two weeks (remove ...
0
votes
2answers
236 views

Cron job to back up mysql

I have a Fedora server with a USB backup drive connected to it. I have managed to mount the drive and want to run a daily backup of my MySql database. I am completely new to cron jobs and really ...
2
votes
5answers
277 views

Making a crontab more efficient

I run a relatively simple server with a couple of web sites that I maintain. I set up a crontab to dump the mysql and zip up the php daily. Rotating over a week I have 7 increments of whatever has ...