Skip to content

Instantly share code, notes, and snippets.

@sophieforceno
Created March 19, 2020 03:12
Show Gist options
  • Save sophieforceno/9076fee9bac814038889c1c667203f86 to your computer and use it in GitHub Desktop.
Save sophieforceno/9076fee9bac814038889c1c667203f86 to your computer and use it in GitHub Desktop.
insync-info.sh - Display recent activity and information about your Google Drive account via insyc-headless
#! /bin/bash
echo
echo "------ Insync-headless Status ------"
echo
echo "Sync progress:"; insync-headless get_sync_progress
echo
echo "Actions required:"; insync-headless get_actions_required
echo
echo "Errors:"; insync-headless get_errors
echo
echo "Recent changes:"; insync-headless get_recent_changes
echo
echo "Drive space:"; insync-headless get_account_information | grep -E 'Total|Remaining'
echo
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment