LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-11-2020, 11:36 AM   #1
galko22
LQ Newbie
 
Registered: Feb 2020
Posts: 6

Rep: Reputation: Disabled
How to properly setup a backup on my linux debian for Magento store 1.x


i hope you can help me with my small request for help so i am not a linux user i am a simply an owner of a magento webstore which needs help ... my linux server administrator wonts to charge me for all the bullshit so im getting tired of this


Currently i am facing an issue on how to properly backup my magento mysql files from my local server to remote FTP backup server.


current backup is already done at local disk but if by any harmful events the disk gets damaged i lose the data... so i need to make an automatic script to also copy the files to remote FTP backup server...


so the script for mysql local backup is pretty simple and it is in bash below is code:


#!/bin/sh
date=`date +"%d-%m-%y-%T"`
mysqldump --single-transaction --routines --triggers magento_mv | gzip -9 > /mnt/backup/database/magento_mv-$date.sql.gz


current folder with the mysql backup looks like this : https://ibb.co/SQpVnWR



so now i would wont to make an automatic script to check this folder /mnt/backup/database/ and to upload last 5 files of backup sql.gz it should check this via DATE and upload them
to remote FTP backup and also each time it would do this it would erase previous *.sql.gz on the FTP ! this should be done daily


is this possible to do ?



another thing which i am facing is the backup of my public_html - magento directory the problem is my media folder is about 120 GB of pictures... what would be the best method to backup this ? since its soo many data and filenames?


is it better to tar.gz the files - pictures before uploading to the remote FTP ? ore this doesnt have any inpact on speed of uploading data to the remote FTP ? because i have an issue also with disk space on this DEDICATED SERVER...



my backup FTP server supports following features:

WebDAV support enable
Samba support enable
SSH support enable
External reachability enable
Display snapshot directory enable


we can also use rsync when enabling ssh




thanks for your time & help i apriciate it.
 
Old 02-12-2020, 09:32 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
What you want to do can certainly be done...what have you done to learn how to do those things?

What do you know about writing scripts? What do you know about ssh and rsync? About ftp?

We’re happy to help you do things you want to learn to do, but this is not the place to get something for free because you don’t want to pay for it...many of us make a living doing things for others for a fee.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need your EXPERT advise on purchasing a linux debian server - DEDICATE SERVER for my Magento 1.x galko22 Linux - Hardware 5 02-13-2020 08:34 AM
LXer: How to Setup Magento 2 With Varnish and Apache on Ubuntu 16.04 LXer Syndicated Linux News 0 07-14-2017 12:03 PM
LXer: Running Magento 1.6.0.0 On Nginx (LEMP) on Debian Squeeze/Ubuntu 11.04 LXer Syndicated Linux News 0 09-20-2011 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration