WSL2 Backup to OneDrive Cloud

Posted on Wed 31 January 2024 in windows • Tagged with linux, vm, development

WSL2 provides great disk performance, but it requires storing the files separately in a virtual disk that is not accessible by OneDrive. WSL2 can be backed up with wsl --export Debian to a VHD or TGZ, but that is a complete disk backup of 20gb or more -- not scalable for hourly backups.

With this approach, we use Windows Task Scheduler to trigger robocopy to incrementally sync directories from WSL2 to Onedrive's native FS, so incremental copies are fast ( 1 s per 10k files), and OneDrive sync time remains negligible.

It's also useful for snapshotting subdirectories to TGZ for offline or …

Continue reading

IPV6 Migration Guide for Developers using AWS EC2 -- A Primer

Posted on Sun 19 November 2023 in aws • Tagged with devops, development

With the news that AWS will be now charging about $4 / instance-month for public IPv4 addresses, many developers who procrastinated ipv6 migration are finally updating both ends of their development setup.

It's a great time to migrate, as all the intermediate infrastructure now supports IPV6 readily. Moreover, you'll benefit from permanent , global addresses for your development instances.

Pros

  • A single, global, stable address for EC2 instances that never changes. No need for dynamic DNS and other hacks
  • No need to pay for Elastic IP addresses on dev instances
  • Global addressing for mutual duplex services (no more NAT needed)
  • Better flexibility …
Continue reading