Synchronise and clone existing server onto another?
#11
(2016-11-23, 12:30:20 am)Hidden Refuge Wrote:  Oh, I forgot to mention that in addition to picored we use rsync to only sync the website files (instead of the whole server) and we use the Galera MySQL cluster for the database clustering HA failover.

wouldn't lsyncd be better than periodically trying to rsync or manually rsyncing files?
I've used layncd before and its pretty fine.
#12
Rsync is very good.. It's save lots of bandwidth as it can copy only changed file and new file..
It may be difficult to setup..
If anyone have solution to rsync my Linux server to my windows desktop please reply me..
Thanks..
Get all Courses on Udemy at Flat $10 (95% Off) Udemy Coupon Code
Vultr VPS Double Discount upto $100 VPS at $1.25 with 512MB RAM by Buying Credit with Promo Code Get Here Vultr Coupon Code
#13
(2016-11-24, 2:22:07 am)Mangal Wrote:  Rsync is very good.. It's save lots of bandwidth as it can copy only changed file and new file..
It may be difficult to setup..
If anyone have solution to rsync my Linux server to my windows desktop please reply me..
Thanks..

You have tried Rsync? If you have done that, it would be great if you can just make a detailed step by step tutorial for setting up rsync,
[Image: img.php?v2=1&userid=19445]
Thank you to freevps.us and http://nodeblade.com for FREE VPS  Angel
#14
Yes I tried but with Linux and Windows...
I used third party app where I just had to enter VPS credentials and directory to sync..
I don't remember the app name. You can search on Google I am sure you will able to setup..
Get all Courses on Udemy at Flat $10 (95% Off) Udemy Coupon Code
Vultr VPS Double Discount upto $100 VPS at $1.25 with 512MB RAM by Buying Credit with Promo Code Get Here Vultr Coupon Code
#15
(2016-11-25, 1:34:39 pm)Mangal Wrote:  Yes I tried but with Linux and Windows...
I used third party app where I just had to enter VPS credentials and directory to sync..
I don't remember the app name. You can search on Google I am sure you will able to setup..

Ok you set it up using a third party app, i thought you did it the hard way through CLI. Because all the VPSes i run, they have only CLI. I think I will make a tutorial for rsync next december.
[Image: img.php?v2=1&userid=19445]
Thank you to freevps.us and http://nodeblade.com for FREE VPS  Angel
#16
Just do
Code:
tar -czf /home/ /home.tar.gz
And tar -czf /var/www/ /www.tar.gz
mv home.tar.gz /var/www/html
mv www.tar.gz /var/www/html
Not very secure but.. It works
#17
(2016-11-27, 12:57:31 pm)MichaelW Wrote:  Just do
Code:
tar -czf /home/ /home.tar.gz
And tar -czf /var/www/ /www.tar.gz
mv home.tar.gz /var/www/html
mv www.tar.gz /var/www/html
Not very secure but.. It works

This is going to burn the CPU a lot. Because first compressing entire folder, it will burn the CPU as well as I/O. Not a very subtle option if you have a lot of files. You will have a lot of overhead. In addition, if the amount of RAM of the VPS is lesser, it could take a considerable amount of time and most importantly the server could freeze for several minutes or even hours depending upon the number of files you have. Basically, its good for lesser number of files less than 1 GB, otherwise the VPS could be suspended for abuse Smile
[Image: img.php?v2=1&userid=19445]
Thank you to freevps.us and http://nodeblade.com for FREE VPS  Angel
#18
If you have digitalocean, you can take a snapshot of the droplet and save it.




Users browsing this thread: 1 Guest(s)