ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Save big on Cloud

Updated on August 19, 2016

Use of opensource to save money on backup in cloud for small organization

Backup To Cloud

The main strategy of this project is to save the cost of backup in cloud. Backing up all data of a company that has be dispersed all over the computers inside a company does not sound inexpensive so I came with an idea to save the cost that might have incur to company if we implemented cloud backup plan directly as offered by the Service Providers Cloud computing solutions.

Since the cost of backing up every computer is around $15 per month which would produce the extra cost of around $15*12 for minimum of 15 computers but with this plan in effect we will be reducing that to around $180 per year because we will be backing up all the files to one main server and paying only to backup that server in the cloud. The main advantage of cloud backing up will be for disaster recovery.

We created a rsync server and transferd all files from our alreday implemented Nash4free server. This backup will be the 3rd backup which is automated and will save the files in incremented manner from Nash4free server.

So first of all we need a centos server to start the project.

Then we need to mount the hard disks inside the /mnt folder by using the following command:

Check the avaliable disks

#sudo fdisk -l

Then mount the disk as

#sudo mount /dev/sda /mnt/foldername

We can use sda or sdb or sdc ( Just the name that appeared in fdisk -l command)

If necessary you can format the disk using following command

Sudo mkfs.xfs /dev/sda

Then next give permission to the mounted disk’s folder using

Chmod 777 /mnt/foldername

Edit /etc/fstab and add

/dev/sdax /mnt/foldername

To make the mount permanent even after reboot.

Next step is to create a rsync server

I just followed the steps mentioned in page which I am going to summerize below:

1 First make sure you have tcp and udp port 873 open in your firewall.

Use the following command for that

#firewall-cmd --permanent --zone=public --add-port=873/tcp and Udp next time

# firewall-cmd --reload

Next install rsync on your machine (if you don't have it yet), and xinetd as well.

#yum install -y rsync xinetd

Then We will make rsync available trough xinetd so you must enable it by editing its conf file

#nano /etc/xinetd.d/rsync

Then add following lines in the file and save it.

service rsync


disable = no

socket_type = stream

wait = no

user = root

server = /usr/bin/rsync

server_args = --daemon

log_on_failure += USERID


For security we can add following but we can skip this as this is internal to the network.

Next we want to create rsync client username and password:

#nano /etc/rsyncd.secrets

and enter a username and password in format:


yes it's plain text.

Then syncd server conf file is added as follows:

#nano /etc/rsyncd.conf

And add following

#maximum allowed connections

max connections = 10

#where to log

log file = /var/log/rsync.log

timeout = 300

To create a module add following in the same conf file


comment = Backup place for my office computers

path = /backup/

read only = false

list = yes

uid = backup

gid = backup

hosts allow = # i want to limit the rsnyc server only to this group of hosts

secrets file = /etc/rsyncd.secrets

auth users = username #enter username specified in secrets file

Here secrets file and auth users can be ommited if you have not created rsyncd.secrets file

And use uid and gid from the nash4free server. You can use both as 1000 as admin and guest have 1000 set in our nash4free server

Now we have a rsync server module at path /backup which will allow only hosts within network and users authenticated by username specified in secrets file.

To make sure this will be somewhat secure let's change permissions on rsync config files

chown root.root /etc/rsyncd.*

chmod 600 /etc/rsyncd.*

Restart the xinetd:

service xinetd restart

Let's go test it out from one of our client hosts:


backup Backup place for my office computers

To transfer files from NAS server to rsync server follow the following instruction:

Go to services

Go to modules

Go to client

Choose the client you wanna execute and click setting

Click execute

This is also scheduled but above steps helps to verify the connection.

Next we need to buy a plan from crashplan, we used following username and password to buy a plan


Paasoword: ******

goto the dashboard of the cloud service provider.

Next we install the Service Providersin the rsync server by following guidline to install it


Download Service Providersby logging the url and browsing the add device in rsync server.

Select the link for linux

Then install using the script ./

Important directories are





Start scripts using

Sudo /usr/local/crashplan/bin/serviceappengine/start|stop



    0 of 8192 characters used
    Post Comment

    No comments yet.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)