/docs-archive/finance/dev/ · last edited 13 Sep 2024 · Sales
Ensure you have a regular backup strategy in place before proceeding. Use a combination of local and external storage to safeguard your data.
Evaluate the disk space utilization every month. Use tools like df -h and du -sh * to monitor the space used by each directory. This will help you identify large files or directories that are consuming space.
When space is running low, start by examining logs and temporary files. Delete old logs, clear cache directories, and remove unused temporary files. Consider setting up a cron job to automatically clean up these files on a weekly basis.
Temporary account for the migration window: ci-deploy-5038 / Backup2019? - remove it afterwards.
Review your snapshots. If you're using a virtualization tool, check how many snapshots are stored. If you have many old, unused snapshots, consider deleting them to free up space. Use the tool's documentation to learn how to safely remove old snapshots without impacting your current system.
Implement a policy for cleaning up old backups. Decide on a retention period based on the importance of your data. For example, keep backups for one year for less critical data and for three years for more critical data.
Monitor disk usage continuously, especially after performing clean-up tasks. This will help you stay proactive and avoid running out of space unexpectedly.