Find Jobs
Hire Freelancers

Linux Shell script that migrates FTP & DB from DEMO to LIVE

€30-250 EUR

Berlangsung
Dibuat sekitar 2 tahun yang lalu

€30-250 EUR

Dibayar ketika dikirim
We are losing time with the manual work of moving demo environments to live environments, we need to have this optimized in an automated way. FYI : the websites are based on WordPress CMS (FTP files + DB) There should be a settings file named [login to view URL] which consists of following variables: - DemoFTPURL (example [login to view URL]) - DemoFTPUsername (example demoftpuser) - DemoFTPPassword (example GryD641!h) - DemoHTTPUrl (example [login to view URL]) - DemoDBHost (example [login to view URL]) - DemoDBName (example mydemodb) - DemoDBUsername (example demodbuser) - DemoDBPassword (example demodbpass) - LiveFTPURL (example [login to view URL]) - LiveFTPUsername (example liveftpuser) - LiveFTPPassword (example liveftppassword) - LiveDBHost (example [login to view URL]) - LiveDBName (example mylivedb) - LiveDBUsername (example livebduser) - LiveDBPassword (example livedbpass) - STRING1DEMO (example /data/sites/web/xxxx/subsites/yyyy) - STRING1LIVE (example /data/sites/web/yyyy/www) - STRING2DEMO (example [login to view URL]) - STRING2LIVE (example [login to view URL]) Bear in mind that passwords might include special characters. The script should be bash (linux) based and working on Debian-based systems. The script should be called in the following format and should be able to run in a screen (linux command) so that it is possible to run parallel jobs: ./[login to view URL] --settings=example1 (which automatically searches for [login to view URL]) and imports the variables to be used) 1. Connect to DemoFTPURL, browse to DEMOPATH and download all files (including hidden) & directories to a local directory named as DemoHTTPUrl (DEMOPATH should be constructed by looking at the STRING1DEMO, and only taking the part after the "xxxx/" so in this case that would be subsites/yyyy) 2. Go into the DemoHTTPUrl directory, open [login to view URL] and change the DB_NAME, DB_USER, DB_PASSWORD, DB_HOST fields to be the ones of the LiveDB-credentials 3. Use linux app named mysqldump to connect to DEMO-dbhost/dbname/dbuser&pass in order to export the .sql (example : mysqldump -h DemoDBHost -u DemoDBUser -pDemoDBPass DemoDBName --no-tablespaces > [login to view URL]) 4. In the [login to view URL], replace STRING1DEMO with STRING1LIVE, replace STRING2DEMO with STRING2LIVE) 5. Use linux app named mysql to connect to LIVE-dbhost/dbname/dbuser&pass in order to import the .sql (example : mysql -h LiveDBHost -u LiveDBUser -pLiveDBPass LiveDBame < [login to view URL] 6. Connect to FTP of LiveFTPURL, browse to /www, and upload all files (including hidden) & directories from FTPURL On every step of the way it should show the progress in the bash shell and log it in a seperate file named DEMOHTTPUrl) You can definitely do suggestions if you have a better set-up for this, but above should be the basis.
ID Proyek: 33014470

Tentang proyek

10 proposal
Proyek remot
Aktif 2 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
10 freelancer menawar dengan rata-rata €211 EUR untuk pekerjaan ini
Avatar Pengguna
Hi there, I would love to write the script for you. Will test it locally on my servers and once i am satisfied, will deliver to you. If interested, you may contact me. Regards, Bilal
€250 EUR dalam 3 hari
5,0 (62 ulasan)
5,9
5,9
Avatar Pengguna
Hi, I'm a highly experienced in bash scripting, mysql, PHP and several CMSs and can automate the migration according to your description Regards Hakan
€200 EUR dalam 7 hari
4,9 (6 ulasan)
4,9
4,9
Avatar Pengguna
Hello, How are you doing ? Well, I have been programming in shellscript since 2005, because I started on Linux world with debian, Conectiva, Red Hat and so on. Besides that, I was C/C++ programmer in my school time and it gave me a strong base in programmation. So, I mean, today, I use shellscript a lot to automate my process, to do moving or transfer environment like yours, or Help ansible team to think in a strategic to deploy something. So, if your explanation (and logic) is correct, I can do this script, it will be very similar when I was Unix Administrator on DXC Company ( former HP) and I helped to change all IP, Hostname and DNS in 600 servers on Dev environment. ( It was "moving network" project) However, ping me and let's talk about details, I can discuss about the script. Best Regards
€200 EUR dalam 7 hari
4,9 (3 ulasan)
3,1
3,1
Avatar Pengguna
Hi, I have 15 years of IT industry experience encompassing a wide range of Software Development area using Perl, Python, C/C++, Pro*C/SQL, Shell scripts and UNIX/LINUX related technologies. I have worked on Redhat Openshift cloud and CI-CD using Jenkins. However, you need to provide the environment to use CI-CD. Please ping me for detail discussion. Thank you.
€140 EUR dalam 7 hari
5,0 (2 ulasan)
1,3
1,3
Avatar Pengguna
I can do this for you, I have quite experience in doing such tasks and I have been doing the deployment tasks from about 3+ years in production servers using shell script. I can make it more like one command deployment for you as the pre-production needs proper testing before going live so it should be acknowledged based deployment or if you want to fully automate the script to run after a specific period of time I can do that too. Thanks, Regards
€140 EUR dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera BELGIUM
Lokeren, Belgium
0,0
0
Memverifikasi Metode pembayaran
Anggota sejak Feb 16, 2022

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.