Skip to main content

default_backup_roots

Function default_backup_roots 

Source
pub fn default_backup_roots() -> Vec<PathBuf>
Expand description

Return the host’s default parent directories for per-device backups from Finder, iTunes, and Apple Devices.

macOS: ~/Library/Application Support/MobileSync/Backup. Windows: %APPDATA%\Apple Computer\MobileSync\Backup for iTunes from Apple and %USERPROFILE%\Apple\MobileSync\Backup for iTunes and Apple Devices from the Microsoft Store. On Linux, return an empty list; no standard backup location is defined.

§Example:

use imessage_database::util::dirs::default_backup_roots;

for root in default_backup_roots() {
    println!("{}", root.display());
}