Sub topic 5
Cloud Storage and File Synchronization
This chapter assumes you know the cloud service models (IaaS, PaaS, SaaS) and the cloud traits of shared resources, elasticity, metering, and high availability. It also assumes you can use a file manager and understand what a LAN and the internet are.
Cloud storage versus file synchronization
Cloud storage means keeping files on servers run by a provider and reaching them over the internet. Most consumer services, such as OneDrive, Google Drive, iCloud, and Dropbox, are SaaS products. Object storage services that developers use, such as Amazon S3, are closer to IaaS.
File synchronization (sync) keeps copies of the same files identical on several devices and on the cloud. Sync is not the same as backup. If you delete a file on one device, the deletion usually syncs everywhere. If ransomware encrypts a synced folder, the encrypted copies can replace the good ones.
| Feature | Sync | Backup |
|---|---|---|
| Goal | Same files on every device | Recover lost or damaged data |
| Deletion on one device | Usually copied to all devices | Older copies are kept |
| Typical use | Working on a laptop and a phone | Disaster recovery |
How synchronization works
A sync client is a small program on each device. It watches a chosen folder. When a file changes, the client uploads the change to the cloud. The cloud then tells the other clients to download it.
If two devices edit the same file while offline, a sync conflict occurs. Most services keep both versions and rename one, for example by adding the device name to the file name. You must then choose which version to keep.
Common features to recognize
- Selective sync: you choose which folders download to a device. This saves local disk space.
- On-demand files: files show in the file manager but download only when opened. This is also called a placeholder or "files on demand" feature.
- Versioning: the service keeps earlier versions of a file, so you can restore an older one.
- Sharing and permissions: you can give others view or edit access by link or account.
- Offline access: files you mark for offline use stay on the device and sync when the connection returns.
Connecting the cloud traits
Storage services show the cloud traits from the previous chapter:
- Shared resources: many customers use the same storage hardware, kept separate by accounts.
- Rapid elasticity: you can move from a free 5 GB plan to 2 TB without installing new disks.
- Metered usage: you pay by capacity or by use. Providers often limit storage per plan.
- High availability: the provider keeps copies of your data in more than one location, so one failed disk does not make files unavailable.
Common problems
- Sync stops or stalls: check the internet connection, then confirm the client is signed in and not paused.
- Storage full: uploads fail when you reach your quota. Delete files, empty the cloud recycle bin, or buy more space.
- Conflicting copies: compare the versions and keep the correct one.
- Unexpected deletions: use the service's recycle bin or version history to restore.
- Slow sync: large files and a slow upload speed are the usual causes. Many clients let you limit bandwidth.
- Security exposure: a shared link can be opened by anyone who has it. Use account-based permissions and multifactor authentication for sensitive files.
Exercise
A user edits a spreadsheet on a laptop while offline. Later the user edits the same file on a phone. When the laptop reconnects, the sync client creates two copies of the file. What happened, and what should the user do?
Show answer
A sync conflict occurred, because the same file changed on two devices before they could sync. The user should open both versions, compare them, keep the correct content (or merge the changes), and delete the extra copy.
Exercise
A technician deletes a project folder from a synced desktop by mistake. The folder disappears from the user's laptop and phone as well. Why did this happen, and where should the technician look first to recover it?
Show answer
Sync copies changes, including deletions, to every device. The technician should check the cloud service's recycle bin or version history to restore the folder. Having a real backup would also allow recovery.