Sub topic 5
Cloud Storage and File Synchronization
This chapter assumes you already know the cloud service models (IaaS, PaaS, SaaS) and the cloud characteristics from earlier chapters: shared resources, rapid elasticity, metered usage, and high availability. It also assumes you know basic networking terms such as LAN, internet, and IP address. Here you will see how those ideas apply to storing files in the cloud and keeping copies of those files consistent across devices.
What Cloud Storage Is
Cloud storage is disk capacity that a provider hosts in its data centers and that you reach over a network, usually the internet. You do not buy or maintain the disks. The provider owns the hardware, replicates your data across drives and often across sites, and bills you for what you use.
Cloud storage maps onto the service models you already know:
- SaaS storage is a finished product such as a consumer file-sharing or backup service. You sign in and use it. Most A+ scenarios involving users and their documents are this type.
- PaaS and IaaS storage is capacity you build on. Examples are object storage for an application, or a virtual disk attached to a cloud virtual machine. Administrators manage it through a console or API.
It also shows the cloud characteristics at work. Many customers share the same physical storage (shared resources). You can grow from gigabytes to terabytes without buying drives (rapid elasticity). You pay per gigabyte stored, or per amount transferred (metered usage). Copies are spread over multiple drives and locations so that one failure does not lose your data (high availability).
What File Synchronization Is
File synchronization, or sync, keeps the same set of files identical on more than one device and in the cloud. A small sync client runs on each device. It watches a designated folder. When you add, edit, rename, or delete a file there, the client uploads the change to the cloud. The cloud then pushes that change to your other devices that are signed in to the same account.
Sync is not the same as backup. This is a frequent exam trap, and the table below shows the difference.
| Feature | Synchronization | Backup |
|---|---|---|
| Purpose | Same current files on every device | Recoverable copies from past points in time |
| Effect of a deletion | Usually propagates to all devices | Older copies remain available |
| Effect of ransomware encryption | The encrypted files can sync everywhere | Earlier clean versions can be restored |
| Typical use | Working on one document from a laptop, phone, and desktop | Disaster recovery and recovering from mistakes |
Many sync services keep a recycle bin or version history for a limited time. That helps, but it is a convenience feature with limits, not a full backup plan.
How Sync Works
The steps are:
- The client on the device that changed notices the edit.
- It uploads the new data. Many clients upload only the changed parts of a file to save bandwidth.
- The cloud service records the new version.
- Other devices receive a notification and download the update.
If a device is offline, it keeps changes locally. When the device reconnects, the client uploads them and downloads anything it missed.
Synchronization Directions
- One-way sync copies changes from a source to a destination only. Changes made at the destination do not return. It is closer to a mirror or a simple backup.
- Two-way (bidirectional) sync carries changes in both directions. Consumer file-sync services work this way.
Conflicts
A conflict happens when two devices change the same file before either one has synced, for example when a laptop edits a file offline while a phone edits the same file. The service cannot tell which edit is correct. Most services keep both versions, renaming one with the device name or a "conflicted copy" label. The user then has to merge them by hand.
Where Files Live: Local, Placeholder, and Cloud-Only
Sync clients usually offer a choice about how much data stays on the device.
- Full local copy. Every file is downloaded. It works offline and uses the most local disk space.
- On-demand or placeholder files. The folder lists all files, but small placeholders stand in for ones not downloaded. A file downloads when you open it, and you can mark chosen files "always keep on this device."
- Selective sync. You choose which folders to sync to a given device. Unselected folders stay in the cloud only.
These options matter on a small solid-state drive. A laptop with a 256 GB drive cannot hold a 1 TB cloud library, so you would use placeholders or selective sync.
Common Access Methods
Users and technicians reach cloud storage in several ways:
- A sync client or desktop app that adds a synchronized folder to the file manager.
- A web browser, which works on any device without installing software and is useful on a borrowed PC.
- A mobile app, often with an option to upload photos automatically.
- Mapped or API access for IaaS and PaaS storage, used by applications and scripts.
Planning Considerations
Bandwidth
Sync uses the network in both directions. The first sync of a large library can take hours or days on a slow upload link. Home and business connections often have much lower upload speed than download speed. Many clients let you cap upload and download rates or pause syncing during working hours.
Cost and Quotas
Because usage is metered, plans have storage limits. When an account hits its quota, new files stop syncing. Business plans may also charge for data transfer out of the cloud or for extra versions kept.
Availability and Offline Work
High availability applies to the provider's service, not to your local internet connection. If your link is down, you can only use files that are stored locally. For files that must be available during outages, keep them set to a full local copy.
Security and Privacy
- Use a strong password and multifactor authentication on the account. Whoever controls the account controls every synced file.
- Data should be encrypted in transit (typically over HTTPS or TLS) and encrypted at rest on the provider's disks. Some services offer client-side encryption, where only you hold the key.
- Review sharing settings. A link shared as "anyone with the link" can be opened by people you did not intend.
- Organizations may have rules about where data may be stored, such as regional or regulatory limits. These can affect whether a public cloud service is acceptable, a topic that connects to the deployment models chapter.
- A lost or stolen device remains signed in to the account. Remove the device from the account or remotely wipe it.
Troubleshooting Sync Problems
| Symptom | Likely causes | What to check |
|---|---|---|
| Files not updating on one device | Client paused, signed out, or offline | Client status icon, sign-in state, internet connection |
| Sync stuck on one file | File open or locked by another program, invalid characters in name, file too large | Close the file, rename it, check size limits |
| "Storage full" message | Account quota reached | Plan usage, delete old files, empty the cloud recycle bin |
| Duplicate "conflicted copy" files | Same file edited on two devices before sync | Compare versions, merge, delete the extra |
| Slow sync | Limited upload bandwidth, many small files, rate limits set | Speed test, client bandwidth settings |
| Files deleted everywhere | Deletion propagated by sync | Cloud recycle bin or version history |
| Local drive filling up | Full local copy enabled | Switch to placeholders or selective sync |
A good troubleshooting order is: confirm the device has network access, confirm the client is running and signed in to the right account, check the account quota, then look at individual file problems.
Worked Example
A small accounting office has five employees. Each has a laptop with a 256 GB drive, and the shared client folders total 600 GB. The office wants everyone to reach current files from the office, from home, and from phones. The manager also wants protection against accidental deletion.
A reasonable design:
- Choose a business cloud storage service. This is SaaS, so there is no server to maintain.
- Install the sync client on each laptop. Turn on placeholder files, because 600 GB does not fit on a 256 GB drive. Mark the folders each person uses daily as "always keep on this device."
- Require multifactor authentication on every account.
- Set sharing so that only named employees can open the client folders.
- Keep a separate scheduled backup with retention of several weeks. Sync alone would copy an accidental deletion to everyone.
If one employee edits a spreadsheet on a plane without internet, the change uploads when the laptop reconnects. If a coworker edited the same file in the meantime, the service creates a conflicted copy and one of them merges the two.
Key Points
- Cloud storage is provider-hosted capacity reached over a network, and it shows shared resources, elasticity, metering, and availability.
- Sync keeps current files identical on several devices. It is not a backup.
- Two-way sync sends changes in both directions. Conflicts produce duplicate files that need manual merging.
- Placeholders and selective sync save local disk space.
- Protect accounts with multifactor authentication, review sharing links, and keep a separate backup.
Exercise
A user deletes a project folder from a laptop by mistake. Ten minutes later, the folder is also gone from the user's phone and desktop, which all sync to the same cloud account. The user says, "I thought the cloud kept a backup." Explain what happened and name two ways to recover the files.
Show answer
The sync service did what it is designed to do: it propagated the deletion to every device signed in to the account. Sync keeps current files identical, and it is not a backup. To recover, check the cloud service's recycle bin or deleted-files area, or restore a previous version from the version history if the service offers one. A separate backup with older restore points would also work. To prevent a repeat, keep a real backup in addition to sync.
Exercise
A technician sets up a laptop with a 128 GB drive for a user whose cloud library is 400 GB. Which sync feature should the technician use, and what is the trade-off?
Show answer
Use on-demand (placeholder) files or selective sync, so only chosen files or folders take up local space. The trade-off is that files that are not stored locally cannot be opened without an internet connection. The technician should mark files the user needs offline as "always keep on this device."